zed/crates/vim/test_data/test_command_replace.json
Horam Zarri 694c912201
vim: Set current line as default sed command scope (#17234)
Closes #16977

Release Notes:
- added current line as default sed range to match vim's behavior
- changed tests accordingly

This also simplifies `ReplaceCommand` implementation by changing
`Option<CommandRange>` to `CommandRange` .
2024-09-04 13:26:32 -06:00

31 lines
528 B
JSON

{"Put":{"state":"ˇa\nb\nb\nc"}}
{"Key":":"}
{"Key":"%"}
{"Key":"s"}
{"Key":"/"}
{"Key":"b"}
{"Key":"/"}
{"Key":"d"}
{"Key":"enter"}
{"Get":{"state":"a\nd\nˇd\nc","mode":"Normal"}}
{"Key":":"}
{"Key":"%"}
{"Key":"s"}
{"Key":":"}
{"Key":"."}
{"Key":":"}
{"Key":"\\"}
{"Key":"0"}
{"Key":"\\"}
{"Key":"0"}
{"Key":"enter"}
{"Get":{"state":"aa\ndd\ndd\nˇcc","mode":"Normal"}}
{"Key":"k"}
{"Key":":"}
{"Key":"s"}
{"Key":"/"}
{"Key":"dd"}
{"Key":"/"}
{"Key":"ee"}
{"Key":"enter"}
{"Get":{"state":"aa\ndd\nˇee\ncc", "mode":"Normal"}}