Add nu utils and helix theme additions

main
Julius Riegel 7 months ago
parent 0b69c1aa13
commit f8832d1de8

@ -20,6 +20,7 @@
"mustache_statement" = { fg = "green" } "mustache_statement" = { fg = "green" }
"string_literal" = { fg = "yellow" } "string_literal" = { fg = "yellow" }
"number_literal" = { fg = "purple" } "number_literal" = { fg = "purple" }
"label" = { fg = "red"}
"diff.plus" = { fg = "green" } "diff.plus" = { fg = "green" }
"diff.delta" = { fg = "orange" } "diff.delta" = { fg = "orange" }
@ -44,6 +45,7 @@
"ui.virtual.ruler" = { bg = "ruler" } "ui.virtual.ruler" = { bg = "ruler" }
"ui.virtual.indent-guide" = { fg = "ruler" } "ui.virtual.indent-guide" = { fg = "ruler" }
"ui.virtual" = { fg = "hint" } "ui.virtual" = { fg = "hint" }
"ui.virtual.jump-label" = { fg = "red", modifiers = ["italic"] }
"ui.statusline" = { fg = "foreground", bg = "background_dark" } "ui.statusline" = { fg = "foreground", bg = "background_dark" }
"ui.statusline.inactive" = { fg = "comment", bg = "background_dark" } "ui.statusline.inactive" = { fg = "comment", bg = "background_dark" }

@ -471,3 +471,4 @@ use ci.nu
use ide.nu use ide.nu
source remoting.nu source remoting.nu
source utils.nu

@ -204,7 +204,7 @@ export def gp [
--override --override
--submodule (-s) # git submodule --submodule (-s) # git submodule
--init (-i) # git init --init (-i) # git init
--merge (-m) # git pull (no)--rebase --rebase (-r) # git pull (no)--rebase
--autostash (-a) # git pull --autostash --autostash (-a) # git pull --autostash
--back-to-prev (-b) # back to branch --back-to-prev (-b) # back to branch
] { ] {
@ -216,7 +216,7 @@ export def gp [
git commit -v -a --no-edit --amend git commit -v -a --no-edit --amend
git push --force git push --force
} else { } else {
let m = if $merge { [] } else { [--rebase] } let m = if $rebase { [--rebase] } else { [] }
let a = if $autostash {[--autostash]} else {[]} let a = if $autostash {[--autostash]} else {[]}
let branch = if ($branch | is-empty) { (_git_status).branch } else { $branch } let branch = if ($branch | is-empty) { (_git_status).branch } else { $branch }
let branch_repr = $'(ansi yellow)($branch)(ansi light_gray)' let branch_repr = $'(ansi yellow)($branch)(ansi light_gray)'

@ -0,0 +1,8 @@
# convert json log entries into an array of nu log entries
export def `from json-lines` [] {
lines | each {|it| try { $it | from json } catch { {msg: $it} }}
}
export def `follow json-lines` [] {
lines | each {|it| try { $it | from json } catch { {msg: $it} } | table --expand | print} | ignore
}
Loading…
Cancel
Save