diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-01-27 02:17:31 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-01-27 02:17:31 -0800 |
commit | 7d8766980b0b3604d9fe77850faa62092ff5c786 (patch) | |
tree | fdc17785de339cdfbab1299f93d8603f8fa34c60 /share | |
parent | 5be3606236bd2185d93162fcad097d8c30f84885 (diff) |
Support escape or up-arrow to cancel the completion search field.
Diffstat (limited to 'share')
-rw-r--r-- | share/functions/fish_default_key_bindings.fish | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/share/functions/fish_default_key_bindings.fish b/share/functions/fish_default_key_bindings.fish index 63903f66..2fec74da 100644 --- a/share/functions/fish_default_key_bindings.fish +++ b/share/functions/fish_default_key_bindings.fish @@ -115,7 +115,10 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis bind \ep '__fish_paginate' # shift-tab does a tab complete followed by a search - bind --key btab complete-and-search + bind --key btab complete-and-search + + # escape cancels stuff + bind \e cancel # term-specific special bindings switch "$TERM" |