kakoune/doc/pages
Johannes Altmanninger a36473f4bb Do not record prompt history when executing user mode mappings
Commit 217dd6a1d (Disable history when executing maps, 2015-11-10)
made it so with

	map global normal X %{:echo 123<ret>}

X does not add to prompt history (%reg{:}).

Unfortunately this behavior was not extended to mappings in the "user"
keymap, nor to mappings in custom user modes.
In my experience, not adding to history is almost always the expected
behavior for mappings. Most users achieve this by adding a leading space:

	map global user X %{: echo 123<ret>}

but that's awkward. We should have good defaults (no nnoremap)
and map should work the same way across all modes.

Fix this by also disabling history when executing user mappings. This
is a breaking change but I think it only breaks hypothetical scenarios.

I found some uses where user mappings add to history but none of them
looks intentional.

f702a641d1/.config/kak/kakrc (L169)
604ef1c1c2/kakrc (L96)
d22e7d6f68/kak/kakrc (L71)
https://grep.app/search?q=map%20%28global%7Cbuffer%7Cwindow%29%20user%20.%2A%5B%21%3A/%5D%5B%5E%20%5D.%2A%3Cret%3E&regexp=true
2022-08-01 07:37:02 +02:00
..
buffers.asciidoc Amended grammar, punctuation, and word choice. 2022-05-17 10:39:06 -07:00
changelog.asciidoc Do not record prompt history when executing user mode mappings 2022-08-01 07:37:02 +02:00
command-parsing.asciidoc 1) Modified some wording to be more precise 2022-05-10 09:53:03 -07:00
commands.asciidoc doc commands: fix names of complete-command's completion_type arguments 2022-03-08 22:10:28 +01:00
execeval.asciidoc Update doc/pages/execeval.asciidoc 2022-07-13 23:22:55 -07:00
expansions.asciidoc Fix documentation for %val{window_range} 2022-04-22 21:26:15 +02:00
faces.asciidoc Made changes suggested by krobelus 2022-07-26 13:42:28 -07:00
faq.asciidoc doc faq: Document the frugal scripting language 2020-08-10 12:23:35 +03:00
highlighters.asciidoc highlighter doc: some clarificatory edits 2022-05-23 16:52:30 +05:30
hooks.asciidoc {commands,hooks}.asciidoc: Use consistent capitalization for Kakoune 2021-05-15 22:17:41 -04:00
keymap.asciidoc Fixed some English typos 2019-08-04 00:45:19 +02:00
keys.asciidoc Move user mappings to <space> and keep/remove selection to , 2022-07-05 08:43:40 +10:00
mapping.asciidoc Do not record prompt history when executing user mode mappings 2022-08-01 07:37:02 +02:00
modes.asciidoc Move user mappings to <space> and keep/remove selection to , 2022-07-05 08:43:40 +10:00
options.asciidoc Grammar correction options.asciidoc 2022-02-13 21:27:31 -05:00
regex.asciidoc doc regex: Avoid confusion in relationship with ECMAScript 2021-10-29 19:21:50 +02:00
registers.asciidoc doc: fix typos and clarify some parts 2020-05-28 18:37:26 +02:00
scopes.asciidoc doc: Document the buffer=/path/to/file scope syntax. 2019-01-23 12:34:02 +11:00