vim: Implement partial increment/decrement for visual selection (#36553)
This change adds the ability to increment / decrement numbers that are part of a visual selection. Previously Zed would resolve to the entire number under visual selection for increment as oppposed to only incrementing the part of the number that is selected Release Notes: - vim: Fixed increment/decrement in visual mode
This commit is contained in:
parent
e1a96b68f0
commit
f5fd4ac670
2 changed files with 130 additions and 1 deletions
|
@ -0,0 +1,20 @@
|
|||
{"Put":{"state":"ˇ123"}}
|
||||
{"Key":"v"}
|
||||
{"Key":"l"}
|
||||
{"Key":"ctrl-a"}
|
||||
{"Get":{"state":"ˇ133","mode":"Normal"}}
|
||||
{"Key":"l"}
|
||||
{"Key":"v"}
|
||||
{"Key":"l"}
|
||||
{"Key":"ctrl-a"}
|
||||
{"Get":{"state":"1ˇ34","mode":"Normal"}}
|
||||
{"Key":"shift-v"}
|
||||
{"Key":"y"}
|
||||
{"Key":"p"}
|
||||
{"Key":"p"}
|
||||
{"Key":"ctrl-v"}
|
||||
{"Key":"k"}
|
||||
{"Key":"k"}
|
||||
{"Key":"l"}
|
||||
{"Key":"ctrl-a"}
|
||||
{"Get":{"state":"ˇ144\n144\n144","mode":"Normal"}}
|
Loading…
Add table
Add a link
Reference in a new issue