-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vim mode: delete subword deleting beyond the first punctuation #23344
Comments
The meaning of
This is a motions issue. |
Please correct me if I am wrong, but with the default word motion |
I found the same issue (I think) and didn't research the current list of issues well enough before posting it (linked it as a duplicate now). In case it helps clarify the problem, here's the issue description from my duplicate: SummaryNextWordStart and NextSubwordStart appear to treat punctuation differently. NextWordStart stops at punctuation, NextSubwordStart ignores punctuation and goes to the next word after a space Steps to trigger the problem:
Actual Behavior: delete NextWordStart (does as I expect and deletes up until the comma) delete NextSubwordStart (deletes past the comma up until the next word separated by whitespace) Expected Behavior: They should behave the same in this case (I'd expect the NextWordStart behavior). My context stack tells me that they're using equivalent commands (the vim operator in the context is incorrect as it changes when I set up the screenshot command; it should be Word: Zed Version and System SpecsZed: v0.174.6 (Zed) |
Check for existing issues
Describe the bug / provide steps to reproduce it
Subword was implemented in vim: Add Subword Textobject #22387 (thanks!)
Use
"w": "vim::NextSubwordStart"
inkeymap.json
Inside the below text with
<char>
indicating the cursor:dw
and text becomes:Or when cursor at:
dw
and text becomes (delete beyond"
and two lines joined):In both cases, I expect the delete to stop at
"
Zed Version and System Specs
Zed: v0.171.0 (Zed Dev b472bd9)
OS: Windows 10.0.19044
Memory: 31.8 GiB
Architecture: x86_64
GPU: NVIDIA GeForce RTX 3060 || NVIDIA || 546.17
If applicable, add screenshots or screencasts of the incorrect state / behavior
No response
If applicable, attach your Zed.log file to this issue.
No response
The text was updated successfully, but these errors were encountered: