summaryrefslogtreecommitdiff
path: root/test/compose
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2020-01-02 21:13:43 +1100
committerMaxime Coste <mawww@kakoune.org>2020-01-02 21:13:43 +1100
commit43dc494e5cfac649c8f242b940a656adcae906db (patch)
treeb73d5cbb3e05b4d35b9d3cedc16bc60586c79531 /test/compose
parentf2159750d28153b68b244d2bdcc3905e0efa425d (diff)
parentb03b51d27ace58cc17eb8a3aec99fa20dd3209ab (diff)
Merge remote-tracking branch 'eraserhd/history-api'
Diffstat (limited to 'test/compose')
-rw-r--r--test/compose/history/cmd1
-rw-r--r--test/compose/history/in1
-rw-r--r--test/compose/history/kak_quoted_history1
-rw-r--r--test/compose/history/rc7
4 files changed, 10 insertions, 0 deletions
diff --git a/test/compose/history/cmd b/test/compose/history/cmd
new file mode 100644
index 00000000..13d71626
--- /dev/null
+++ b/test/compose/history/cmd
@@ -0,0 +1 @@
+Amiddle<esc><a-f>dd
diff --git a/test/compose/history/in b/test/compose/history/in
new file mode 100644
index 00000000..d44e18fb
--- /dev/null
+++ b/test/compose/history/in
@@ -0,0 +1 @@
+start
diff --git a/test/compose/history/kak_quoted_history b/test/compose/history/kak_quoted_history
new file mode 100644
index 00000000..acd0fedc
--- /dev/null
+++ b/test/compose/history/kak_quoted_history
@@ -0,0 +1 @@
+- $timestamp 1 0 $timestamp - '+0.5|m' '+0.6|i' '+0.7|d' '+0.8|d' '+0.9|l' '+0.10|e' '-0.8|dle'
diff --git a/test/compose/history/rc b/test/compose/history/rc
new file mode 100644
index 00000000..931d0d1c
--- /dev/null
+++ b/test/compose/history/rc
@@ -0,0 +1,7 @@
+# Make our expansion have a predictable timestamp
+hook global ClientClose .* %{
+ evaluate-commands %sh{
+ kak -f 'ghf<space>ec$timestamp<esc>2f<space>ec$timestamp<esc>' <kak_quoted_history >tmp
+ mv tmp kak_quoted_history
+ }
+}