diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2023-05-08 22:38:22 +0200 |
|---|---|---|
| committer | Johannes Altmanninger <aclopte@gmail.com> | 2023-05-09 11:32:37 +0200 |
| commit | 7d2bae63b9e51c2952ff638ff5abce15499cd076 (patch) | |
| tree | 198b24e606d95297272ea1af289c7ca0cf8ce137 /test/normal/selection-undo | |
| parent | 2adc81c4c937e2422b1f3fa7cf470e1e7b040ffa (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 'test/normal/selection-undo')
| -rw-r--r-- | test/normal/selection-undo/fold-redundant-entries/script | 2 | ||||
| -rw-r--r-- | test/normal/selection-undo/redo/script | 2 | ||||
| -rw-r--r-- | test/normal/selection-undo/undo/script | 2 | ||||
| -rw-r--r-- | test/normal/selection-undo/windisplay-hook/script | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/test/normal/selection-undo/fold-redundant-entries/script b/test/normal/selection-undo/fold-redundant-entries/script index 456f92f2..3c6f905e 100644 --- a/test/normal/selection-undo/fold-redundant-entries/script +++ b/test/normal/selection-undo/fold-redundant-entries/script @@ -1,2 +1,2 @@ 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>" ] }' diff --git a/test/normal/selection-undo/redo/script b/test/normal/selection-undo/redo/script index c92d82d7..b57d219b 100644 --- a/test/normal/selection-undo/redo/script +++ b/test/normal/selection-undo/redo/script @@ -1,2 +1,2 @@ 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>" ] }' diff --git a/test/normal/selection-undo/undo/script b/test/normal/selection-undo/undo/script index 2b00d75e..64b1971f 100644 --- a/test/normal/selection-undo/undo/script +++ b/test/normal/selection-undo/undo/script @@ -1,2 +1,2 @@ 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>" ] }' diff --git a/test/normal/selection-undo/windisplay-hook/script b/test/normal/selection-undo/windisplay-hook/script index d2fd1c40..e5a5bc55 100644 --- a/test/normal/selection-undo/windisplay-hook/script +++ b/test/normal/selection-undo/windisplay-hook/script @@ -1,2 +1,2 @@ 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>" ] }' |
