vim: Add g?
convert to Rot13
/Rot47
(#27824)
Release Notes: - Added `g?` convert to `Rot13`/`Rot47` --------- Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
parent
7bc0dd1bf6
commit
57d7bc23ae
12 changed files with 252 additions and 23 deletions
23
crates/vim/test_data/test_change_rot13_motion.json
Normal file
23
crates/vim/test_data/test_change_rot13_motion.json
Normal file
|
@ -0,0 +1,23 @@
|
|||
{"Put":{"state":"ˇabc def"}}
|
||||
{"Key":"g"}
|
||||
{"Key":"?"}
|
||||
{"Key":"w"}
|
||||
{"Get":{"state":"ˇnop def","mode":"Normal"}}
|
||||
{"Key":"g"}
|
||||
{"Key":"?"}
|
||||
{"Key":"w"}
|
||||
{"Get":{"state":"ˇabc def","mode":"Normal"}}
|
||||
{"Key":"."}
|
||||
{"Get":{"state":"ˇnop def","mode":"Normal"}}
|
||||
{"Put":{"state":"abˇc def"}}
|
||||
{"Key":"g"}
|
||||
{"Key":"?"}
|
||||
{"Key":"i"}
|
||||
{"Key":"w"}
|
||||
{"Get":{"state":"ˇnop def","mode":"Normal"}}
|
||||
{"Key":"."}
|
||||
{"Get":{"state":"ˇabc def","mode":"Normal"}}
|
||||
{"Key":"g"}
|
||||
{"Key":"?"}
|
||||
{"Key":"$"}
|
||||
{"Get":{"state":"ˇnop qrs","mode":"Normal"}}
|
6
crates/vim/test_data/test_change_rot13_object.json
Normal file
6
crates/vim/test_data/test_change_rot13_object.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{"Put":{"state":"ˇabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"}}
|
||||
{"Key":"g"}
|
||||
{"Key":"?"}
|
||||
{"Key":"i"}
|
||||
{"Key":"w"}
|
||||
{"Get":{"state":"ˇnopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM","mode":"Normal"}}
|
15
crates/vim/test_data/test_convert_to_rot13.json
Normal file
15
crates/vim/test_data/test_convert_to_rot13.json
Normal file
|
@ -0,0 +1,15 @@
|
|||
{"Put":{"state":"a😀C«dÉ1*fˇ»\n"}}
|
||||
{"Key":"g"}
|
||||
{"Key":"?"}
|
||||
{"Get":{"state":"a😀CˇqÉ1*s\n","mode":"Normal"}}
|
||||
{"Put":{"state":"abˇC\n"}}
|
||||
{"Key":"shift-v"}
|
||||
{"Key":"g"}
|
||||
{"Key":"?"}
|
||||
{"Get":{"state":"ˇnoP\n","mode":"Normal"}}
|
||||
{"Put":{"state":"ˇaa\nbb\ncc"}}
|
||||
{"Key":"ctrl-v"}
|
||||
{"Key":"j"}
|
||||
{"Key":"g"}
|
||||
{"Key":"?"}
|
||||
{"Get":{"state":"ˇna\nob\ncc","mode":"Normal"}}
|
Loading…
Add table
Add a link
Reference in a new issue