aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/fish_default_key_bindings.fish
diff options
context:
space:
mode:
authorGravatar Konrad Borowski <glitchmr@myopera.com>2013-10-27 17:30:07 +0100
committerGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2013-11-09 19:50:38 +0800
commitc0ad54fe02d0631beeafd5208866dc52146e94a2 (patch)
treefd17342bf3136585dbd18c80191331b4761e2ec0 /share/functions/fish_default_key_bindings.fish
parentfe3bca3a88025fbc5ffff8a94299c3320ad49790 (diff)
Allow reading manpages by using F1.
Diffstat (limited to 'share/functions/fish_default_key_bindings.fish')
-rw-r--r--share/functions/fish_default_key_bindings.fish3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/functions/fish_default_key_bindings.fish b/share/functions/fish_default_key_bindings.fish
index 44821f36..7121db38 100644
--- a/share/functions/fish_default_key_bindings.fish
+++ b/share/functions/fish_default_key_bindings.fish
@@ -99,6 +99,9 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis
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
+ # Allow reading manpages by pressing F1
+ bind -k f1 'man (commandline -po; echo)[1] ^/dev/null; or echo -n \a'
+
# 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'