autosuggestion keybinding

This commit is contained in:
Noah Masur 2021-05-05 08:32:39 -04:00
parent 96dcac70d8
commit e616d30fb3
2 changed files with 11 additions and 8 deletions

View File

@ -593,15 +593,17 @@ key_bindings:
# Reference for escape codes: https://www.gaijin.at/en/infos/ascii-ansi-character-table # Reference for escape codes: https://www.gaijin.at/en/infos/ascii-ansi-character-table
- { 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: D, mods: Super, chars: "\x14" } # CMD-D sends CTRL-T for fzf - { key: D, mods : Super, chars: "\x14" } # CMD-D sends CTRL-T for fzf
- { key: O, mods: Super, chars: "\x0f" } # CMD-O sends CTRL-O for fish/vim - { key: O, mods : Super, chars: "\x0f" } # CMD-O sends CTRL-O for fish/vim
- { key: R, mods: Super, chars: "\x05" } # CMD-R sends CTRL-E for fish/vim - { key: R, mods : Super, chars: "\x05" } # CMD-R sends CTRL-E for fish/vim
- { key: G, mods: Super, chars: "\x07" } # CMD-G sends CTRL-G for fish/vim - { key: G, mods : Super, chars: "\x07" } # CMD-G sends CTRL-G for fish/vim
- { key: L, mods : Super, chars: "\x1F" } # CMD-L sends null key for fish
- { key: Return, mods : Shift, chars: "\x1b[13;2u" }
- { key: Return, mods : Control, chars: "\x1b[13;5u" }
- { key: Return, mods : Control|Shift, chars: "\x1b[13;6u" }
- { key: Return, mods: Shift, chars: "\x1b[13;2u" }
- { key: Return, mods: Control, chars: "\x1b[13;5u" }
- { key: Return, mods: Control|Shift, chars: "\x1b[13;6u" }
- { key: N, mods: Command, action: SpawnNewInstance } - { key: N, mods: Command, action: SpawnNewInstance }
- { key: PageUp, action: ScrollPageUp } - { key: PageUp, action: ScrollPageUp }
- { key: PageUp, mode: Alt, chars: "\x1B[5~" } - { key: PageUp, mode: Alt, chars: "\x1B[5~" }

View File

@ -4,4 +4,5 @@ function fish_user_key_bindings
bind -M insert \co 'edit' bind -M insert \co 'edit'
bind -M insert \ce 'recent' bind -M insert \ce 'recent'
bind -M insert \cg 'commandline-git-commits' bind -M insert \cg 'commandline-git-commits'
bind -M insert \x1F accept-autosuggestion
end end