summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2023-05-08 22:38:22 +0200
committerJohannes Altmanninger <aclopte@gmail.com>2023-05-09 11:32:37 +0200
commit7d2bae63b9e51c2952ff638ff5abce15499cd076 (patch)
tree198b24e606d95297272ea1af289c7ca0cf8ce137 /src/normal.cc
parent2adc81c4c937e2422b1f3fa7cf470e1e7b040ffa (diff)
Map undo selection change to <a-u>/<a-U>
Change the initial <c-h>/<c-k> bindings to the recently freed-up <a-u></a-U>. Pros: - easier to remember - the redo binding is logical. - works on legacy terminals, unlike <c-h> Cons: - It's less convenient to toggle between selection undo and redo keys. I think this is okay since this scenario does not happen that often in practice.
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/normal.cc b/src/normal.cc
index e3220521..d53ff333 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -2340,8 +2340,8 @@ static constexpr HashMap<Key, NormalCmd, MemoryDomain::Undefined, KeymapBackend>
{ {'u'}, {"undo", undo} },
{ {'U'}, {"redo", redo} },
- { {ctrl('h')}, {"undo selection change", undo_selection_change<Backward>} },
- { {ctrl('k')}, {"redo selection change", undo_selection_change<Forward>} },
+ { {alt('u')}, {"undo selection change", undo_selection_change<Backward>} },
+ { {alt('U')}, {"redo selection change", undo_selection_change<Forward>} },
{ {alt('i')}, {"select inner object", select_object<ObjectFlags::ToBegin | ObjectFlags::ToEnd | ObjectFlags::Inner>} },
{ {alt('a')}, {"select whole object", select_object<ObjectFlags::ToBegin | ObjectFlags::ToEnd>} },