vim: Support for q and @ (#13761)
Fixes: #1504 Release Notes: - vim: Support for macros (`q` and `@`) to record and replay (#1506, #4448)
This commit is contained in:
parent
dceb0827e8
commit
3348c3ab4c
13 changed files with 491 additions and 316 deletions
14
crates/vim/test_data/test_record_replay.json
Normal file
14
crates/vim/test_data/test_record_replay.json
Normal file
|
@ -0,0 +1,14 @@
|
|||
{"Put":{"state":"ˇhello world"}}
|
||||
{"Key":"q"}
|
||||
{"Key":"w"}
|
||||
{"Key":"c"}
|
||||
{"Key":"w"}
|
||||
{"Key":"j"}
|
||||
{"Key":"escape"}
|
||||
{"Key":"q"}
|
||||
{"Get":{"state":"ˇj world","mode":"Normal"}}
|
||||
{"Key":"2"}
|
||||
{"Key":"l"}
|
||||
{"Key":"@"}
|
||||
{"Key":"w"}
|
||||
{"Get":{"state":"j ˇj","mode":"Normal"}}
|
16
crates/vim/test_data/test_record_replay_count.json
Normal file
16
crates/vim/test_data/test_record_replay_count.json
Normal file
|
@ -0,0 +1,16 @@
|
|||
{"Put":{"state":"ˇhello world!!"}}
|
||||
{"Key":"q"}
|
||||
{"Key":"a"}
|
||||
{"Key":"v"}
|
||||
{"Key":"3"}
|
||||
{"Key":"l"}
|
||||
{"Key":"s"}
|
||||
{"Key":"0"}
|
||||
{"Key":"escape"}
|
||||
{"Key":"l"}
|
||||
{"Key":"q"}
|
||||
{"Get":{"state":"0ˇo world!!","mode":"Normal"}}
|
||||
{"Key":"2"}
|
||||
{"Key":"@"}
|
||||
{"Key":"a"}
|
||||
{"Get":{"state":"000ˇ!","mode":"Normal"}}
|
17
crates/vim/test_data/test_record_replay_dot.json
Normal file
17
crates/vim/test_data/test_record_replay_dot.json
Normal file
|
@ -0,0 +1,17 @@
|
|||
{"Put":{"state":"ˇhello world"}}
|
||||
{"Key":"q"}
|
||||
{"Key":"a"}
|
||||
{"Key":"r"}
|
||||
{"Key":"a"}
|
||||
{"Key":"l"}
|
||||
{"Key":"r"}
|
||||
{"Key":"b"}
|
||||
{"Key":"l"}
|
||||
{"Key":"q"}
|
||||
{"Get":{"state":"abˇllo world","mode":"Normal"}}
|
||||
{"Key":"."}
|
||||
{"Get":{"state":"abˇblo world","mode":"Normal"}}
|
||||
{"Key":"shift-q"}
|
||||
{"Get":{"state":"ababˇo world","mode":"Normal"}}
|
||||
{"Key":"."}
|
||||
{"Get":{"state":"ababˇb world","mode":"Normal"}}
|
35
crates/vim/test_data/test_record_replay_interleaved.json
Normal file
35
crates/vim/test_data/test_record_replay_interleaved.json
Normal file
|
@ -0,0 +1,35 @@
|
|||
{"Put":{"state":"ˇhello world"}}
|
||||
{"Key":"q"}
|
||||
{"Key":"z"}
|
||||
{"Key":"r"}
|
||||
{"Key":"a"}
|
||||
{"Key":"l"}
|
||||
{"Key":"q"}
|
||||
{"Get":{"state":"aˇello world","mode":"Normal"}}
|
||||
{"Key":"q"}
|
||||
{"Key":"b"}
|
||||
{"Key":"@"}
|
||||
{"Key":"z"}
|
||||
{"Key":"@"}
|
||||
{"Key":"z"}
|
||||
{"Key":"q"}
|
||||
{"Get":{"state":"aaaˇlo world","mode":"Normal"}}
|
||||
{"Key":"@"}
|
||||
{"Key":"@"}
|
||||
{"Get":{"state":"aaaaˇo world","mode":"Normal"}}
|
||||
{"Key":"@"}
|
||||
{"Key":"b"}
|
||||
{"Get":{"state":"aaaaaaˇworld","mode":"Normal"}}
|
||||
{"Key":"@"}
|
||||
{"Key":"@"}
|
||||
{"Get":{"state":"aaaaaaaˇorld","mode":"Normal"}}
|
||||
{"Key":"q"}
|
||||
{"Key":"z"}
|
||||
{"Key":"r"}
|
||||
{"Key":"b"}
|
||||
{"Key":"l"}
|
||||
{"Key":"q"}
|
||||
{"Get":{"state":"aaaaaaabˇrld","mode":"Normal"}}
|
||||
{"Key":"@"}
|
||||
{"Key":"b"}
|
||||
{"Get":{"state":"aaaaaaabbbˇd","mode":"Normal"}}
|
14
crates/vim/test_data/test_record_replay_of_dot.json
Normal file
14
crates/vim/test_data/test_record_replay_of_dot.json
Normal file
|
@ -0,0 +1,14 @@
|
|||
{"Put":{"state":"ˇhello world"}}
|
||||
{"Key":"r"}
|
||||
{"Key":"o"}
|
||||
{"Key":"q"}
|
||||
{"Key":"w"}
|
||||
{"Key":"."}
|
||||
{"Key":"q"}
|
||||
{"Get":{"state":"ˇoello world","mode":"Normal"}}
|
||||
{"Key":"d"}
|
||||
{"Key":"l"}
|
||||
{"Get":{"state":"ˇello world","mode":"Normal"}}
|
||||
{"Key":"@"}
|
||||
{"Key":"w"}
|
||||
{"Get":{"state":"ˇllo world","mode":"Normal"}}
|
Loading…
Add table
Add a link
Reference in a new issue