kakoune/doc
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
..
pages Do not record prompt history when executing user mode mappings 2022-08-01 07:37:02 +02:00
autoedit.asciidoc doc: fix typos and clarify some parts 2020-05-28 18:37:26 +02:00
coding-style.asciidoc Rename NCursesUI to TerminalUI 2021-07-12 10:25:58 +10:00
design.asciidoc Edit high-level design doc for ease of reading 2021-03-17 22:12:17 -04:00
interfacing.asciidoc Change completions option docstring element to be an arbitrary command 2019-04-17 08:38:52 +02:00
json_ui.asciidoc Refactor mouse press/release handling to support 3 buttons 2020-06-28 19:48:55 +10:00
kak.1 Describe 'filter mode' in more detail. 2021-12-13 09:05:22 +11:00
kakoune_logo.svg Add logo proposal. 2015-03-22 14:09:32 +01:00
screenshot-i3.gif Add some screenshots to README 2015-05-07 00:34:50 +01:00
screenshot-tmux.gif Add some screenshots to README 2015-05-07 00:34:50 +01:00
writing_scripts.asciidoc doc writing_scripts: Document echo portability issues 2020-05-04 12:10:23 +00:00