We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Zed offers you subword motions via the {Next,Previous}Subword{Start,End} commands, but, as far as I can tell, no way to use subwords as text objects.
{Next,Previous}Subword{Start,End}
E.g. given a camelCase word such as NextSubwordStart, I'd like to be able to do diw and only delete the current subword according to my cursor.
NextSubwordStart
diw
for instance, with | as my cursor:
|
Ne|xtSubwordStart
SubwordStart
Zed: v0.167.1 (Zed) OS: macOS 14.6.1 Memory: 16 GiB Architecture: aarch64
No response
The text was updated successfully, but these errors were encountered:
Adding subwords like in VSCode would be nice, following the example would be something like:
di space w
should result in
where space w means subword. The same is aplicable for space e or space b that would be analogous to b and e.
space w
space e
space b
b
e
Sorry, something went wrong.
vim: Add Subword Textobject (#22387)
26be440
Closes #22761 [Vim: subword text object? #22280](#22280) Release Notes: - Added Vim SubWord TextObject --------- Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Successfully merging a pull request may close this issue.
Check for existing issues
Describe the feature
Zed offers you subword motions via the
{Next,Previous}Subword{Start,End}
commands, but, as far as I can tell, no way to use subwords as text objects.E.g. given a camelCase word such as
NextSubwordStart
, I'd like to be able to dodiw
and only delete the current subword according to my cursor.for instance, with
|
as my cursor:diw
Zed Version and System Specs
Zed: v0.167.1 (Zed)
OS: macOS 14.6.1
Memory: 16 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help present your vision of the feature
No response
The text was updated successfully, but these errors were encountered: