support vim replace command with range (#10709)
Release Notes: - Added support for line ranges in vim replace commands #9428 - not supporting anything other than bare line numbers right now - ~need to figure out how to show range in question in search bar~ @ConradIrwin implemented showing a highlight of the selected range for a short direction instead - ~tests lol~
This commit is contained in:
parent
0697b417a0
commit
bc736265be
6 changed files with 160 additions and 12 deletions
12
crates/vim/test_data/test_replace_with_range.json
Normal file
12
crates/vim/test_data/test_replace_with_range.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{"Put":{"state":"ˇa\na\na\na\na\na\na\n "}}
|
||||
{"Key":":"}
|
||||
{"Key":"2"}
|
||||
{"Key":","}
|
||||
{"Key":"5"}
|
||||
{"Key":"s"}
|
||||
{"Key":"/"}
|
||||
{"Key":"a"}
|
||||
{"Key":"/"}
|
||||
{"Key":"b"}
|
||||
{"Key":"enter"}
|
||||
{"Get":{"state":"a\nb\nb\nb\nˇb\na\na\n ","mode":"Normal"}}
|
Loading…
Add table
Add a link
Reference in a new issue