aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/fish_default_key_bindings.fish
diff options
context:
space:
mode:
Diffstat (limited to 'share/functions/fish_default_key_bindings.fish')
-rw-r--r--share/functions/fish_default_key_bindings.fish26
1 files changed, 13 insertions, 13 deletions
diff --git a/share/functions/fish_default_key_bindings.fish b/share/functions/fish_default_key_bindings.fish
index 60fefc3b..f8e1edf4 100644
--- a/share/functions/fish_default_key_bindings.fish
+++ b/share/functions/fish_default_key_bindings.fish
@@ -3,7 +3,7 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis
# Clear earlier bindings, if any
bind --erase --all
-
+
# This is the default binding, i.e. the one used if no other binding matches
bind "" self-insert
@@ -12,28 +12,28 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis
bind \ck kill-line
bind \cy yank
bind \t complete
-
+
bind \e\n "commandline -i \n"
-
+
bind \e\[A up-or-search
bind \e\[B down-or-search
bind -k down down-or-search
bind -k up up-or-search
-
+
bind \e\[C forward-char
bind \e\[D backward-char
bind -k right forward-char
bind -k left backward-char
-
+
bind -k dc delete-char
bind -k backspace backward-delete-char
bind \x7f backward-delete-char
-
+
bind \e\[H beginning-of-line
bind \e\[F end-of-line
bind -k home beginning-of-line
bind -k end end-of-line
-
+
bind \e\eOC nextd-or-forward-word
bind \e\eOD prevd-or-backward-word
bind \e\e\[C nextd-or-forward-word
@@ -43,8 +43,8 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis
bind \e\[3C nextd-or-forward-word
bind \e\[3D prevd-or-backward-word
bind \e\[1\;3C nextd-or-forward-word
- bind \e\[1\;3D prevd-or-backward-word
-
+ bind \e\[1\;3D prevd-or-backward-word
+
bind \e\eOA history-token-search-backward
bind \e\eOB history-token-search-forward
bind \e\e\[A history-token-search-backward
@@ -55,7 +55,7 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis
bind \e\[3B history-token-search-forward
bind \e\[1\;3A history-token-search-backward
bind \e\[1\;3B history-token-search-forward
-
+
bind \ca beginning-of-line
bind \ce end-of-line
bind \ey yank-pop
@@ -73,17 +73,17 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis
bind -k npage end-of-history
bind \e\< beginning-of-buffer
bind \e\> end-of-buffer
-
+
bind \el __fish_list_current_token
bind \ew 'set tok (commandline -pt); if test $tok[1]; whatis $tok[1]; commandline -f repaint; end'
bind \cl 'clear; commandline -f repaint'
bind \cc 'commandline ""'
bind \cu backward-kill-line
bind \ed kill-word
- bind \cw backward-kill-word
+ bind \cw backward-kill-word
bind \ed 'if test -z (commandline); dirh; commandline -f repaint; else; commandline -f kill-word; end'
bind \cd delete-or-exit
-
+
# This will make sure the output of the current command is paged using the less pager when you press Meta-p
bind \ep '__fish_paginate'