Merge remote-tracking branch 'krobelus/map-selection-undo-to-a-u'

This commit is contained in:
Maxime Coste 2023-05-10 19:57:07 +10:00
commit 3c241a2666
8 changed files with 15 additions and 8 deletions

View File

@ -3,6 +3,12 @@
This changelog contains major and/or breaking changes to Kakoune between This changelog contains major and/or breaking changes to Kakoune between
released versions. released versions.
== Development version
* History is now stored linearly instead of in a tree
* `<a-u>` and `<a-U>` now undo selection history
* `%exp{...}` expansions provide flexible quoting for expanded strings (as double quoted strings)
== Kakoune 2022.10.31 == Kakoune 2022.10.31
* `complete-command` (See <<commands#configuring-command-completion,`:doc commands configuring-command-completion`>>) * `complete-command` (See <<commands#configuring-command-completion,`:doc commands configuring-command-completion`>>)

View File

@ -308,10 +308,10 @@ Yanking (copying) and pasting use the *"* register by default (See <<registers#,
*U*:: *U*::
redo last change redo last change
*<c-h>*:: *<a-u>*::
undo last selection change undo last selection change
*<c-k>*:: *<a-U>*::
redo last selection change redo last selection change
*&*:: *&*::

View File

@ -46,6 +46,7 @@ struct {
} constexpr version_notes[] = { { } constexpr version_notes[] = { {
0, 0,
"» History is now stored linearly instead of in a tree\n" "» History is now stored linearly instead of in a tree\n"
"» {+b}<a-u>{} and {+b}<a-U>{} now undo selection history\n"
"» {+u}%exp\\{...}{} expansions provide flexible quoting for expanded " "» {+u}%exp\\{...}{} expansions provide flexible quoting for expanded "
"strings (as double quoted strings)\n" "strings (as double quoted strings)\n"
}, { }, {

View File

@ -2340,8 +2340,8 @@ static constexpr HashMap<Key, NormalCmd, MemoryDomain::Undefined, KeymapBackend>
{ {'u'}, {"undo", undo} }, { {'u'}, {"undo", undo} },
{ {'U'}, {"redo", redo} }, { {'U'}, {"redo", redo} },
{ {ctrl('h')}, {"undo selection change", undo_selection_change<Backward>} }, { {alt('u')}, {"undo selection change", undo_selection_change<Backward>} },
{ {ctrl('k')}, {"redo selection change", undo_selection_change<Forward>} }, { {alt('U')}, {"redo selection change", undo_selection_change<Forward>} },
{ {alt('i')}, {"select inner object", select_object<ObjectFlags::ToBegin | ObjectFlags::ToEnd | ObjectFlags::Inner>} }, { {alt('i')}, {"select inner object", select_object<ObjectFlags::ToBegin | ObjectFlags::ToEnd | ObjectFlags::Inner>} },
{ {alt('a')}, {"select whole object", select_object<ObjectFlags::ToBegin | ObjectFlags::ToEnd>} }, { {alt('a')}, {"select whole object", select_object<ObjectFlags::ToBegin | ObjectFlags::ToEnd>} },

View File

@ -1,2 +1,2 @@
ui_out -ignore 4 ui_out -ignore 4
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ "gjgkxd<c-h>ihere<esc>" ] }' ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ "gjgkxd<a-u>ihere<esc>" ] }'

View File

@ -1,2 +1,2 @@
ui_out -ignore 4 ui_out -ignore 4
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ "2jj<c-h><c-h><c-k>ihere<esc>" ] }' ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ "2jj<a-u><a-u><a-U>ihere<esc>" ] }'

View File

@ -1,2 +1,2 @@
ui_out -ignore 4 ui_out -ignore 4
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ "j2j<c-h><c-h>ihere<esc>" ] }' ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ "j2j<a-u><a-u>ihere<esc>" ] }'

View File

@ -1,2 +1,2 @@
ui_out -ignore 4 ui_out -ignore 4
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ "j:buffer *debug*<ret><c-h>ihere<esc>" ] }' ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ "j:buffer *debug*<ret><a-u>ihere<esc>" ] }'