diff options
author | liljencrantz <liljencrantz@gmail.com> | 2008-01-19 10:38:20 +1000 |
---|---|---|
committer | liljencrantz <liljencrantz@gmail.com> | 2008-01-19 10:38:20 +1000 |
commit | 0ad64ad2e477211bd83c79554640b592d8001286 (patch) | |
tree | 3c8233f8bf7e65e754bc5f4b6ad8fc7d9deb2cab /doc_src/bind.txt | |
parent | 523096e5d8399a773ee6e2cb8bcf88cca9c73cd7 (diff) |
Improve documentaion for bind builtin, clarify how to specify key sequences.
darcs-hash:20080119003820-75c98-b1f9360ddab9206a1cdf77b94ce28e9978badb53.gz
Diffstat (limited to 'doc_src/bind.txt')
-rw-r--r-- | doc_src/bind.txt | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/doc_src/bind.txt b/doc_src/bind.txt index 6c4e7148..74fead12 100644 --- a/doc_src/bind.txt +++ b/doc_src/bind.txt @@ -8,9 +8,15 @@ The <tt>bind</tt> builtin causes fish to add a key binding from the specified sequence. SEQUENCE is the character sequence to bind to. Usually, one would use -fish escape sequences to express them. For example, Alt-w can be -written as <tt>\\ew</tt>, and Control-x can be written as -<tt>\\cx</tt>. +fish escape sequences to express them. For example, because pressing +the Alt key and another character sends that character prefixed with +an escape character, Alt-based key bindings can be written using the +\c \\e escape. For example, Alt-w can be written as +<tt>\\ew</tt>. Control character can be written in much the same way +using the \c \\c escape, for example Control-x can be written as +<tt>\\cx</tt>. Note that Alt-based key bindings are case sensitive and +Control base key bindings are not. This is not a design choice in +fish, it is simply how terminals work. If SEQUENCE is the empty string, i.e. an empty set of quotes, this is interpreted as the default keybinding. It will be used whenever no |