zed/crates/vim/test_data/test_v_search.json
Conrad Irwin f327118e06
vim: Allow search with operators & visual mode (#10226)
Fixes: #4346

Release Notes:

- vim: Add search motions (`/,?,n,N,*,#`) in visual modes and as targets
for operators like `d`,`c`,`y`
([#4346](https://github.com/zed-industries/zed/issues/4346)).
2024-04-08 15:20:14 -06:00

29 lines
718 B
JSON

{"Put":{"state":"ˇa.c. abcd a.c. abcd"}}
{"Key":"v"}
{"Key":"/"}
{"Key":"c"}
{"Key":"d"}
{"Key":"enter"}
{"Get":{"state":"«a.c. abcˇ»d a.c. abcd","mode":"Visual"}}
{"Put":{"state":"a a aˇ a a a"}}
{"Key":"v"}
{"Key":"/"}
{"Key":"a"}
{"Key":"enter"}
{"Get":{"state":"a a a« aˇ» a a","mode":"Visual"}}
{"Key":"/"}
{"Key":"enter"}
{"Get":{"state":"a a a« a aˇ» a","mode":"Visual"}}
{"Key":"?"}
{"Key":"enter"}
{"Get":{"state":"a a a« aˇ» a a","mode":"Visual"}}
{"Key":"?"}
{"Key":"enter"}
{"Get":{"state":"a a «ˇa »a a a","mode":"Visual"}}
{"Key":"/"}
{"Key":"enter"}
{"Get":{"state":"a a a« aˇ» a a","mode":"Visual"}}
{"Key":"/"}
{"Key":"enter"}
{"Get":{"state":"a a a« a aˇ» a","mode":"Visual"}}