shell - Ctrl-F no longer works to accept suggestions. Why? -
i enabled vi mode adding fish_vi_mode config. since did ctrl+f no longer works complete suggestions, have use right arrow instead.
the keybindings forward-char same or without fish_vi_mode enabled. according fish_config, are:
forward-char right arrow forward-char right arrow forward-char ctrl - f why doesn't ctrl+f work fish_vi_mode enabled?
in vi mode, run bind , \cf, it's here:
bind -m insert \cf forward-word that's what's going on: control-f going forward word. can restore non-vi behavior:
bind -m insert \cf forward-char which go forward 1 character, or accept autosuggestion if cursor @ end (which admittedly sort of weird).
or if want accept autosuggestion, can run after fish_vi_mode:
bind -m insert \cf accept-autosuggestion now accepts autosuggestion @ point, not @ end.
btw, these functions accept-autosuggestion or forward-char can listed via bind --function-names
edit: harder ought due #2254. simplest thing put call fish_vi_mode in fish_user_key_bindings function:
function fish_user_key_bindings fish_vi_mode bind -m insert \cf accept-autosuggestion bind \cf accept-autosuggestion end you can use funced fish_user_key_bindings write function, , funcsave fish_user_key_bindings save it.
Comments
Post a Comment