mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-24 17:44:52 +00:00
autosuggestion keybinding
This commit is contained in:
parent
96dcac70d8
commit
e616d30fb3
@ -593,15 +593,17 @@ key_bindings:
|
||||
|
||||
# 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: 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: 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: 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: 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: 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: PageUp, action: ScrollPageUp }
|
||||
- { key: PageUp, mode: Alt, chars: "\x1B[5~" }
|
||||
|
@ -4,4 +4,5 @@ function fish_user_key_bindings
|
||||
bind -M insert \co 'edit'
|
||||
bind -M insert \ce 'recent'
|
||||
bind -M insert \cg 'commandline-git-commits'
|
||||
bind -M insert \x1F accept-autosuggestion
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user