From ed5f90d22e2da4b9ff9219c78aadffed26b10ff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20H=C4=83loiu?= Date: Thu, 10 Nov 2016 16:08:43 +0200 Subject: [PATCH] Update key binding docs to reflect actual behavior Some key bindings were updated in fish 2.4.0 but in some cases the documentation does not correctly reflect the actual behavior. This commit attempts to fix that. --- doc_src/index.hdr.in | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/doc_src/index.hdr.in b/doc_src/index.hdr.in index 27a7ed9a6..9ce902ca2 100644 --- a/doc_src/index.hdr.in +++ b/doc_src/index.hdr.in @@ -977,7 +977,7 @@ Some bindings are shared between emacs- and vi-mode because they aren't text edi - @key{Alt,↑,Up} and @key{Alt,↓,Down} search the command history for the previous/next token containing the token under the cursor before the search was started. If the commandline was not on a token when the search started, all tokens match. See the history section for more information on history searching. -- @key{Control,C} deletes the entire line. +- @key{Control,C} cancels the entire line. - @key{Control,D} delete one character to the right of the cursor. If the command line is empty, @key{Control,D} will exit fish. @@ -987,6 +987,8 @@ Some bindings are shared between emacs- and vi-mode because they aren't text edi - @key{Control,W} moves the previous path component (everything up to the previous "/") to the killring. +- @key{Control,X} copies the current buffer to the system's clipboard, @key{Control,V} inserts the clipboard contents. + - @key{Alt,D} moves the next word to the killring. - @key{Alt,H} (or @key{F1}) shows the manual page for the current command, if one exists. @@ -1068,16 +1070,11 @@ Command mode is also known as normal mode. - @key{[} and @key{]} search the command history for the previous/next token containing the token under the cursor before the search was started. See the history section for more information on history searching. -- @key{Control, X} copies the current buffer to the system's clipboard, @key{Control, V} inserts the clipboard contents. -- @key{Control,C} deletes the entire line. - - @key{Backspace} moves the cursor left. \subsubsection vi-mode-insert Insert mode -- @key{Escape} or @key{Control,C} enters command mode. - -- @key{Control,x} moves the cursor to the end of the line. If an autosuggestion is available, it will be accepted completely. +- @key{Escape} enters command mode. - @key{Backspace} removes one character to the left.