mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-11 23:47:25 +00:00
Minor bind fixes
Comment out 'o' binding Add '['/']' bindings to navigate current token history Fix 'P' to paste indeed Add "*P/"*p to insert current selection clipboard using xsel
This commit is contained in:
parent
8138b2080b
commit
fc68b9d7cd
1 changed files with 10 additions and 2 deletions
|
@ -29,7 +29,7 @@ function fish_vi_key_bindings -d "vi-like key bindings for fish"
|
|||
bind -m insert A end-of-line force-repaint
|
||||
bind -m visual v begin-selection force-repaint
|
||||
|
||||
bind -m insert o "commandline -a \n" down-line force-repaint
|
||||
#bind -m insert o "commandline -a \n" down-line force-repaint
|
||||
#bind -m insert O beginning-of-line "commandline -i \n" up-line force-repaint # doesn't work
|
||||
|
||||
bind gg beginning-of-buffer
|
||||
|
@ -51,6 +51,9 @@ function fish_vi_key_bindings -d "vi-like key bindings for fish"
|
|||
bind u history-search-backward
|
||||
bind \cr history-search-forward
|
||||
|
||||
bind [ history-token-search-backward
|
||||
bind ] history-token-search-forward
|
||||
|
||||
bind k up-or-search
|
||||
bind j down-or-search
|
||||
bind \e\[A up-or-search
|
||||
|
@ -136,8 +139,13 @@ function fish_vi_key_bindings -d "vi-like key bindings for fish"
|
|||
bind ygE backward-kill-word yank
|
||||
bind ygE backward-kill-word yank
|
||||
|
||||
# in emacs yank means paste
|
||||
bind p yank
|
||||
bind P backward-char yank-pop
|
||||
bind P backward-char yank
|
||||
bind gp yank-pop
|
||||
|
||||
bind '"*p' "commandline -i ( xsel -p; echo )[1]"
|
||||
bind '"*P' backward-char "commandline -i ( xsel -p; echo )[1]"
|
||||
|
||||
#
|
||||
# insert mode
|
||||
|
|
Loading…
Reference in a new issue