Home

dotnix @main - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
tree log patch
feat: fg Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmVoxasACgkQuFOtpdp7 v3ol4Q/+Ni/W7RKRApcmeNt2I2cM/l5NJXD8lU8tLSh+YGDt2NkHV+Ck+e9oBsrd J/3xlPgAYVnlyxjbVyvGCsJKXbkbHmsccq6banUHbYwQPxy7o0DSRkAU1+VauEfn woDO89k46dEJd2Zci4tTvMTuaZa+vIqxDs9szp1SgGrsuzsX0sXPrOVDWuwbeXi9 jXXvT0z8BqP7If3bjMIYfkdSofvAeJzC4KLMiXoYr/rUXaE2fFEXgfJuHo/vXKAC OhaWjr8Txm2tjsHbrEB8fBV163SC532BguoczPLbjpK61eFJYV/TymDckPNS62I9 TdGFE1cHnt536eJ+/rmdnjsamXV8Q0x6z/t+t1/r0UTY0oge4SUrIKpCoFuZPeiy HbLkqlIggycXf8W6xLcgi+8HDObXj/I0KTu5DbMGznCKLGYb5dHovSpROZBvYmc7 nY9IKUq317w07cTel862cVbuabMqFZH4HMGtm+P1zY/VS6S62n4RwuZ8ZTstmj2/ 8fht1AQ9ED167Imz4wDyWDOBeoSZRexwf7QH2Kb7wviqqsDNCOt/cqCxM41F0ygJ JusC3VQYJWfYXEljhYhgSJzE410bvT7ER8GNXZqoHZ1kMafTxDM8wrdxHorcPBXK sLt6qu53WrpTdDTaxGgr5OIMTTHcti2ukufmSx87Vf5eKO/AmvQ= =z5PH -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
11 months ago
1 changed files, 5 additions(+), 0 deletions(-)
M apps/nogui/nushell/jolheiser.nu -> apps/nogui/nushell/jolheiser.nu
diff --git a/apps/nogui/nushell/jolheiser.nu b/apps/nogui/nushell/jolheiser.nu
index 0d6e4bcaeaaa4c9be01d5c44e09863af274b11d4..da8d89ca5d46c9b2f6b7a278dcd178aabf9c58bc 100644
--- a/apps/nogui/nushell/jolheiser.nu
+++ b/apps/nogui/nushell/jolheiser.nu
@@ -51,6 +51,11 @@   ^git remote add upstream $upstream
   ^git fetch upstream
 }
 
+def fg [args ...string] {
+  ^rg --ignore-case --color=always --line-number --no-heading $args 
+  | ^fzf --ansi --color 'hl:-1:underline,hl+:-1:underline:reverse' --delimiter ':' --preview "bat --color=always {1} --theme='ctp-mocha' --highlight-line {2}" --preview-window 'up,60%,border-bottom,+{2}+3/3,~3' --bind $"enter:become\(($env.EDITOR) +{2} {1}\)"
+}
+
 ## Other ##
 $env.EDITOR = hx
 $env.config = ($env.config | upsert "shell_integration" ("WEZTERM_PANE" not-in $env and "SSH_CLIENT" not-in $env))