cmd O to edit in vim with fzf

This commit is contained in:
Noah Masur 2021-04-07 08:38:43 -04:00
parent 2d579893c0
commit 8cca6bfd39
2 changed files with 7 additions and 1 deletions

View File

@ -591,7 +591,8 @@ shell:
key_bindings: key_bindings:
- { key: F, mods: Super, action: ToggleSimpleFullscreen } - { key: F, mods: Super, action: ToggleSimpleFullscreen }
- { key: A, mods: Super, chars: "\x02" } # CMD-A sends CTRL-B for tmux - { key: A, mods: Super, chars: "\x02" } # CMD-A sends CTRL-B for tmux
- { key: O, mods: Super, chars: "\x14" } # CMD-O sends CTRL-T for fzf - { key: D, mods: Super, chars: "\x14" } # CMD-D sends CTRL-T for fzf
- { key: O, mods: Super, chars: "edit\x0D" } # CMD-O opens file in vim
- { key: A, mods: Alt, chars: "\x1ba" } - { key: A, mods: Alt, chars: "\x1ba" }
- { key: B, mods: Alt, chars: "\x1bb" } - { key: B, mods: Alt, chars: "\x1bb" }

View File

@ -0,0 +1,5 @@
function edit --description "Open a file in Vim"
set vimfile (fzf)
and vim $vimfile
end