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:
Kaem 2025-08-22 08:02:47 +05:00 committed by GitHub
parent e1a96b68f0
commit f5fd4ac670
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 130 additions and 1 deletions

View file

@ -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"}}