aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/fish_default_key_bindings.fish
diff options
context:
space:
mode:
authorGravatar Cheer Xiao <xiaqqaix@gmail.com>2013-01-07 22:54:21 +0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-01-07 19:32:38 -0800
commitf8e01628b2352d551d99e7e005653bc1ae20485b (patch)
treeff58a12910a1347c699625fbe00cd7e16c90bc65 /share/functions/fish_default_key_bindings.fish
parent3d1ad8996339aaeed99e4eb6ad4d66b34ec1ac36 (diff)
Keybinding of \ew and \ed: Insert a newline before displaying info
Diffstat (limited to 'share/functions/fish_default_key_bindings.fish')
-rw-r--r--share/functions/fish_default_key_bindings.fish4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/functions/fish_default_key_bindings.fish b/share/functions/fish_default_key_bindings.fish
index 082c083e..80d53830 100644
--- a/share/functions/fish_default_key_bindings.fish
+++ b/share/functions/fish_default_key_bindings.fish
@@ -79,13 +79,13 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis
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 \ew 'set tok (commandline -pt); if test $tok[1]; echo; 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-path-component
- bind \ed 'set -l cmd (commandline); if test -z "$cmd"; dirh; commandline -f repaint; else; commandline -f kill-word; end'
+ bind \ed 'set -l cmd (commandline); if test -z "$cmd"; echo; 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