diff options
| author | Maxime Coste <mawww@kakoune.org> | 2022-08-03 20:37:44 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2022-08-03 20:37:44 +1000 |
| commit | 31e9fc3cefcbea03d4eaad75ed0dab3da8f3dc6f (patch) | |
| tree | 30cc92b8d541a3c750fc522c808b7a0ece99e63a /doc | |
| parent | fa209a9a97c652dffd2986e5e97b55b5dc4826a2 (diff) | |
| parent | 395f43837898a1a1ac19755e479ad6aa1a574c25 (diff) | |
Merge remote-tracking branch 'krobelus/history-in-mappings'
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/pages/changelog.asciidoc | 2 | ||||
| -rw-r--r-- | doc/pages/mapping.asciidoc | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/doc/pages/changelog.asciidoc b/doc/pages/changelog.asciidoc index d475f278..5d2cfa2e 100644 --- a/doc/pages/changelog.asciidoc +++ b/doc/pages/changelog.asciidoc @@ -18,6 +18,8 @@ released versions. * Prompt history registers `%reg{colon}`, `%reg{slash}` and `%reg{pipe}` now have reverse chronological order +* Executing user mode mappings no longer adds to prompt history registers by default. + == Kakoune 2021.11.07 * Support for curly and separately colored underlines (undocumented in 2021.10.28) diff --git a/doc/pages/mapping.asciidoc b/doc/pages/mapping.asciidoc index c029383b..0ba142c4 100644 --- a/doc/pages/mapping.asciidoc +++ b/doc/pages/mapping.asciidoc @@ -59,20 +59,16 @@ It's common to use a normal-mode or user-mode mapping to trigger a command, like this: ---- -map global user n ': make-next-error<ret>' +map global user n :make-next-error<ret> ---- -Note the space between the `:` and the command. This prevents Kakoune from -adding this command to the prompt history, so the user won't have to scroll -past it to review commands they actually typed. - If you make a normal-mode mapping, you can prefix it with a count or a register name like any other normal-mode key. You can forward this information to the command you invoke with the `%val{count}` and `%val{register}` expansions (See <<expansions#`:doc expansions`>>). For example: ---- -map global normal = ': echo Got count %val{count} and reg %val{register}<ret>' +map global normal = ':echo Got count %val{count} and reg %val{register}<ret>' ---- == Mappable keys |
