summaryrefslogtreecommitdiff
path: root/test/normal/repeat-insert/repeat-insert-mapped
diff options
context:
space:
mode:
authorTobias Pisani <topisani@hamsterpoison.com>2024-02-23 16:53:30 +0100
committerTobias Pisani <topisani@hamsterpoison.com>2024-02-24 05:18:56 +0100
commitdbe8528231f61717210f796c93c85b852b760b33 (patch)
treea89cf707517da5c1b57710927d5acc889f2dcab8 /test/normal/repeat-insert/repeat-insert-mapped
parent2d9c84e363d499eb699540c53d9f912f446a4d30 (diff)
Make insert repeat (.) more consistent
Insert repeat will now only record non-synthesized keys, and when played back execute mappings as well. Constructing some tests, and with the specific goal of fixing https://github.com/alexherbo2/auto-pairs.kak/issues/38, this appeared to be the best approach. Other options could be evaluating the maps only when recording, but this gave other issues (see tests/normal/repeat-insert/repeat-insert-mapped) At this point, repeat-insert may be essentially just a hardcoded macro, at least I haven't identified the difference. If this really is the case, it may make sense to give it a dedicated register, and implement it as a macro. Fixes #3600
Diffstat (limited to 'test/normal/repeat-insert/repeat-insert-mapped')
-rw-r--r--test/normal/repeat-insert/repeat-insert-mapped/cmd1
-rw-r--r--test/normal/repeat-insert/repeat-insert-mapped/out1
-rw-r--r--test/normal/repeat-insert/repeat-insert-mapped/rc1
3 files changed, 3 insertions, 0 deletions
diff --git a/test/normal/repeat-insert/repeat-insert-mapped/cmd b/test/normal/repeat-insert/repeat-insert-mapped/cmd
new file mode 100644
index 00000000..d29da756
--- /dev/null
+++ b/test/normal/repeat-insert/repeat-insert-mapped/cmd
@@ -0,0 +1 @@
+ixyz<esc>.
diff --git a/test/normal/repeat-insert/repeat-insert-mapped/out b/test/normal/repeat-insert/repeat-insert-mapped/out
new file mode 100644
index 00000000..37718976
--- /dev/null
+++ b/test/normal/repeat-insert/repeat-insert-mapped/out
@@ -0,0 +1 @@
+zzxx
diff --git a/test/normal/repeat-insert/repeat-insert-mapped/rc b/test/normal/repeat-insert/repeat-insert-mapped/rc
new file mode 100644
index 00000000..6c1d2d04
--- /dev/null
+++ b/test/normal/repeat-insert/repeat-insert-mapped/rc
@@ -0,0 +1 @@
+map global insert y '<a-;>gh'