1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-26 16:36:49 +03:00

Add tests for prompt history behaviour

This commit is contained in:
Maxime Coste 2022-06-07 12:54:12 +10:00
parent a88d80a432
commit 650c2aa3ae
24 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@
bazbarfoob

View File

@ -0,0 +1 @@
define-command append -params 1 %{ set-register dquote %arg{1}; execute-keys A<c-r>"<esc> }

View File

@ -0,0 +1,2 @@
ui_out -ignore 4
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ ":append baz<ret>:append bar<ret>:append foo<ret>:append b<c-p><c-n><ret>" ] }'

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@
foobarbazbar

View File

@ -0,0 +1 @@
define-command append -params 1 %{ set-register dquote %arg{1}; execute-keys A<c-r>"<esc> }

View File

@ -0,0 +1,2 @@
ui_out -ignore 4
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ ":append foo<ret>:append bar<ret>:append baz<ret>:<c-p><c-p><c-p><c-n><c-n><c-p><ret>" ] }'

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@
bazbarfoobar

View File

@ -0,0 +1 @@
define-command append -params 1 %{ set-register dquote %arg{1}; execute-keys A<c-r>"<esc> }

View File

@ -0,0 +1,2 @@
ui_out -ignore 4
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ ":append baz<ret>:append bar<ret>:append foo<ret>:append b<c-p><ret>" ] }'

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@
foobarbazbar

View File

@ -0,0 +1 @@
define-command append -params 1 %{ set-register dquote %arg{1}; execute-keys A<c-r>"<esc> }

View File

@ -0,0 +1,2 @@
ui_out -ignore 4
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ ":append foo<ret>:append bar<ret>:append baz<ret>:<c-p><c-p><c-p><c-n><ret>" ] }'

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@
foofoo

View File

@ -0,0 +1 @@
define-command test %{ execute-keys Afoo<esc> }

View File

@ -0,0 +1,2 @@
ui_out -ignore 4
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ ":test<ret>:<ret>" ] }'

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@
foobarfoo

View File

@ -0,0 +1 @@
define-command append -params 1 %{ set-register dquote %arg{1}; execute-keys A<c-r>"<esc> }

View File

@ -0,0 +1,2 @@
ui_out -ignore 4
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ ":append foo<ret>:append bar<ret>:<c-p><c-p><c-p><ret>" ] }'