vim: add ctrl-a/ctrl-x
For zed-industries/community#1411 For zed-industries/community#619
This commit is contained in:
parent
25429f760c
commit
dd1cf5c3cf
6 changed files with 177 additions and 21 deletions
|
@ -1,3 +1,16 @@
|
|||
{"Put":{"state":"1ˇ2\n"}}
|
||||
{"Key":"ctrl-a"}
|
||||
{"Get":{"state":"1ˇ3\n","mode":"Normal"}}
|
||||
{"Key":"ctrl-x"}
|
||||
{"Get":{"state":"1ˇ2\n","mode":"Normal"}}
|
||||
{"Key":"9"}
|
||||
{"Key":"9"}
|
||||
{"Key":"ctrl-a"}
|
||||
{"Get":{"state":"11ˇ1\n","mode":"Normal"}}
|
||||
{"Key":"1"}
|
||||
{"Key":"1"}
|
||||
{"Key":"1"}
|
||||
{"Key":"ctrl-x"}
|
||||
{"Get":{"state":"ˇ0\n","mode":"Normal"}}
|
||||
{"Key":"."}
|
||||
{"Get":{"state":"-11ˇ1\n","mode":"Normal"}}
|
||||
|
|
15
crates/vim/test_data/test_increment_radix.json
Normal file
15
crates/vim/test_data/test_increment_radix.json
Normal file
|
@ -0,0 +1,15 @@
|
|||
{"Put":{"state":"ˇ total: 0xff"}}
|
||||
{"Key":"ctrl-a"}
|
||||
{"Get":{"state":" total: 0x10ˇ0","mode":"Normal"}}
|
||||
{"Put":{"state":"ˇ total: 0xff"}}
|
||||
{"Key":"ctrl-x"}
|
||||
{"Get":{"state":" total: 0xfˇe","mode":"Normal"}}
|
||||
{"Put":{"state":"ˇ total: 0xFF"}}
|
||||
{"Key":"ctrl-x"}
|
||||
{"Get":{"state":" total: 0xFˇE","mode":"Normal"}}
|
||||
{"Put":{"state":"(ˇ0b10f)"}}
|
||||
{"Key":"ctrl-a"}
|
||||
{"Get":{"state":"(0b1ˇ1f)","mode":"Normal"}}
|
||||
{"Put":{"state":"ˇ-1"}}
|
||||
{"Key":"ctrl-a"}
|
||||
{"Get":{"state":"ˇ0","mode":"Normal"}}
|
14
crates/vim/test_data/test_increment_steps.json
Normal file
14
crates/vim/test_data/test_increment_steps.json
Normal file
|
@ -0,0 +1,14 @@
|
|||
{"Put":{"state":"ˇ1\n1\n1 2\n1\n1"}}
|
||||
{"Key":"j"}
|
||||
{"Key":"v"}
|
||||
{"Key":"shift-g"}
|
||||
{"Key":"g"}
|
||||
{"Key":"ctrl-a"}
|
||||
{"Get":{"state":"1\nˇ2\n3 2\n4\n5","mode":"Normal"}}
|
||||
{"Key":"shift-g"}
|
||||
{"Key":"ctrl-v"}
|
||||
{"Key":"g"}
|
||||
{"Key":"g"}
|
||||
{"Key":"g"}
|
||||
{"Key":"ctrl-x"}
|
||||
{"Get":{"state":"ˇ0\n0\n0 2\n0\n0","mode":"Normal"}}
|
Loading…
Add table
Add a link
Reference in a new issue