From 43745a8fb202d28937fe611d965d9c070e52b438 Mon Sep 17 00:00:00 2001 From: Delapouite Date: Thu, 24 May 2018 16:04:06 +0200 Subject: [PATCH] docs: Add more info about which keys use a default register --- doc/pages/keys.asciidoc | 120 +++++++++++++++++++++------------------- 1 file changed, 63 insertions(+), 57 deletions(-) diff --git a/doc/pages/keys.asciidoc b/doc/pages/keys.asciidoc index 9658f10a..ece78b19 100644 --- a/doc/pages/keys.asciidoc +++ b/doc/pages/keys.asciidoc @@ -156,30 +156,6 @@ the Shift modifier and moving will extend each selection instead. **, **:: select to line end -*/*:: - search (select next match) - -**:: - search (select previous match) - -*?*:: - search (extend to next match) - -**:: - search (extend to previous match) - -*n*:: - select next match - -*N*:: - add a new selection with next match - -**:: - select previous match - -**:: - add a new selection with previous match - *pageup, *:: scroll one page up @@ -206,6 +182,8 @@ the Shift modifier and moving will extend each selection instead. == Changes +Yanking (copying) and pasting use the *"* register by default (See <>) + *i*:: enter insert mode before selections @@ -296,24 +274,6 @@ the Shift modifier and moving will extend each selection instead. deindent selected lines, do not remove incomplete indent (3 leading spaces when indent is 4) -*|*:: - pipe each selection through the given external filter program and - replace the selection with its output. Shell expansions are available, - (See <>) - -**:: - pipe each selection through the given external filter program and - ignore its output. Shell expansions are available, - (See <>) - -*!*:: - insert command output before each selection. Shell expansions are available, - (See <>) - -**:: - append command output after each selection. Shell expansions are available, - (See <>) - *u*:: undo last change @@ -367,6 +327,61 @@ the Shift modifier and moving will extend each selection instead. **:: rotate selections content backward +== Changes through external programs + +Shell expansions are available, (See <>) +The default command comes from the *|* register by default (See <>) + +*|*:: + pipe each selection through the given external filter program and + replace the selection with its output. + +**:: + pipe each selection through the given external filter program and + ignore its output. + +*!*:: + insert command output before each selection. + +**:: + append command output after each selection. + +== Searching + +Searches use the */* register by default (See <>) + +*/*:: + select next match after each selection + +**:: + select previous match before each selection + +*?*:: + extend to next match after each selection + +**:: + extend to previous match before each selection + +*n*:: + select next match after the main selection + +*N*:: + add a new selection with next match after the main selection + +**:: + select previous match before the main selection + +**:: + add a new selection with previous match before the main selection + +***:: + set the search pattern to the main selection (automatically + detects word boundaries) + +**:: + set the search pattern to the main selection (verbatim, no smart + detection) + == Goto commands *g*, *G*:: @@ -491,18 +506,6 @@ Macros use the *@* register by default (See <>) **:: end macro recording -== Searching - -Searches use the */* register by default (See <>) - -***:: - set the search pattern to the main selection (automatically - detects word boundaries) - -**:: - set the search pattern to the main selection (verbatim, no smart - detection) - == Jump list Some commands, like the goto commands, buffer switch or search commands, @@ -520,6 +523,8 @@ to skim through the jump list using: == Multiple selections +*s*, *S*, ** and ** use the */* register by default (See <>) + *s*:: create a selection for each match of the given regex @@ -564,7 +569,7 @@ to skim through the jump list using: == Object Selection For nestable objects, a count can be used in order to specify which surrounding -level to select. +level to select. Object selections are repeatable using **. **:: select the whole object @@ -640,8 +645,9 @@ the wanted object: == Prompt commands When pressing `:` in normal mode, Kakoune will open a prompt to enter a command. -The following keys are recognized by this mode to help edition. -(See <>) +The executed command line is stored in the *:* register (See <>). + +The following keys are recognized by this mode to help with editing (See <>). **:: validate prompt