mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
vi: Bind \cx to end-of-line in insert mode
This will also accept any autosuggestion completely.
This commit is contained in:
parent
46fbfaaa83
commit
bb491742ea
2 changed files with 3 additions and 1 deletions
|
@ -958,6 +958,8 @@ Command mode is also known as normal mode.
|
||||||
|
|
||||||
- @key{Control,B} and @key{Control,F} move the cursor one word left or right. If the cursor is already at the end of the line, and an autosuggestion is available, @key{Control,F} accepts the first word in the suggestion.
|
- @key{Control,B} and @key{Control,F} move the cursor one word left or right. If the cursor is already at the end of the line, and an autosuggestion is available, @key{Control,F} accepts the first word in the suggestion.
|
||||||
|
|
||||||
|
- @key{Control,x} moves the cursor to the end of the line. If an autosuggestion is available, it will be accepted completely.
|
||||||
|
|
||||||
\subsubsection vi-mode-visual Visual mode
|
\subsubsection vi-mode-visual Visual mode
|
||||||
|
|
||||||
- @cursor_key{←,Left} and @cursor_key{→,Right} extend the selection backward/forward by one character.
|
- @cursor_key{←,Left} and @cursor_key{→,Right} extend the selection backward/forward by one character.
|
||||||
|
|
|
@ -163,7 +163,7 @@ function fish_vi_key_bindings --description 'vi-like key bindings for fish'
|
||||||
|
|
||||||
### Overrides
|
### Overrides
|
||||||
# This is complete in vim
|
# This is complete in vim
|
||||||
bind \cx end-of-line
|
bind -M insert \cx end-of-line
|
||||||
bind -M insert \cf forward-word
|
bind -M insert \cf forward-word
|
||||||
|
|
||||||
bind '"*p' "commandline -i ( xsel -p; echo )[1]"
|
bind '"*p' "commandline -i ( xsel -p; echo )[1]"
|
||||||
|
|
Loading…
Reference in a new issue