Tools, binding for fzf cd

This commit is contained in:
Daniel Flanagan 2024-03-21 10:14:58 -05:00
parent bde0ce2e51
commit 5632cf75f5
2 changed files with 85 additions and 78 deletions

View file

@ -14,7 +14,7 @@ function fish_greeting
end end
function preprocess_pwd function preprocess_pwd
test (pwd) = / && echo "/" && return 1 test (pwd) = / && echo / && return 1
test (pwd) = $NICE_HOME && echo "~" && return 0 test (pwd) = $NICE_HOME && echo "~" && return 0
pwd \ pwd \
| cut -c2- \ | cut -c2- \
@ -121,8 +121,10 @@ function fish_prompt
_user_prompt _user_prompt
end end
function fish_mode_prompt; end function fish_mode_prompt
function fish_right_prompt; end end
function fish_right_prompt
end
# key bindings # key bindings
fish_vi_key_bindings fish_vi_key_bindings
@ -146,6 +148,10 @@ if has_command skim
bind -M insert \cg skim-cd-widget bind -M insert \cg skim-cd-widget
end end
if has_command fzf
bind -M insert \cg fzf-cd-widget
end
bind -M insert \cp up-or-search bind -M insert \cp up-or-search
bind -M insert \cn down-or-search bind -M insert \cn down-or-search
bind -M insert \ce end-of-line bind -M insert \ce end-of-line

View file

@ -5,6 +5,7 @@
kubectl kubectl
stern stern
libresprite libresprite
logseq
audacity audacity
wol wol
shellcheck shellcheck