diff --git a/conf.d/key_bindings.fish b/conf.d/key_bindings.fish index 47aa799..21a2855 100644 --- a/conf.d/key_bindings.fish +++ b/conf.d/key_bindings.fish @@ -59,6 +59,8 @@ function fish_user_key_bindings type -q qalc && bind ctrl-alt-= _qalc_eval bind ctrl-enter _smart_execute bind @@ __fzf_inline_picker + bind ctrl-right nextd-or-forward-word + bind \e\[1\;5C nextd-or-forward-word # Set bindings for all Vi modes: # 'default' is Vi-Command, 'insert' is Vi-Insert, 'visual' is Vi-Visual @@ -69,5 +71,7 @@ function fish_user_key_bindings type -q qalc && bind --mode $mode ctrl-alt-= _qalc_eval bind --mode $mode ctrl-enter _smart_execute bind --mode $mode @@ __fzf_inline_picker + bind --mode $mode ctrl-right nextd-or-forward-word + bind --mode $mode \e\[1\;5C nextd-or-forward-word end end diff --git a/docs/fish-config.md b/docs/fish-config.md index 5869747..efd8f82 100644 --- a/docs/fish-config.md +++ b/docs/fish-config.md @@ -342,6 +342,10 @@ are active in Insert, Normal, and Visual modes unless noted. line to open an fzf picker and insert a selection at the cursor position. + Ctrl+Right Accept autosuggestion one word/directory segment + at a time. (Restores Fish 3.x behavior by binding + to nextd-or-forward-word). + ## FZF Bindings (bundled from PatrickF1/fzf.fish) Ctrl+R Search command history diff --git a/docs/manual/03-key-bindings.md b/docs/manual/03-key-bindings.md index 76a8931..7841c13 100644 --- a/docs/manual/03-key-bindings.md +++ b/docs/manual/03-key-bindings.md @@ -46,6 +46,10 @@ are active in Insert, Normal, and Visual modes unless noted. line to open an fzf picker and insert a selection at the cursor position. + Ctrl+Right Accept autosuggestion one word/directory segment + at a time. (Restores Fish 3.x behavior by binding + to nextd-or-forward-word). + ## FZF Bindings (bundled from PatrickF1/fzf.fish) Ctrl+R Search command history