From 0ad64ad2e477211bd83c79554640b592d8001286 Mon Sep 17 00:00:00 2001 From: liljencrantz Date: Sat, 19 Jan 2008 10:38:20 +1000 Subject: [PATCH] Improve documentaion for bind builtin, clarify how to specify key sequences. darcs-hash:20080119003820-75c98-b1f9360ddab9206a1cdf77b94ce28e9978badb53.gz --- doc_src/bind.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/doc_src/bind.txt b/doc_src/bind.txt index 6c4e7148d..74fead123 100644 --- a/doc_src/bind.txt +++ b/doc_src/bind.txt @@ -8,9 +8,15 @@ The bind 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 \\ew, and Control-x can be written as -\\cx. +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 +\\ew. Control character can be written in much the same way +using the \c \\c escape, for example Control-x can be written as +\\cx. 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