-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: new subword
text object
#12026
base: master
Are you sure you want to change the base?
feat: new subword
text object
#12026
Conversation
Only includes checking the character for underscore
currently the "outer" variant does not take into account underscores properly
subword
text object
I'm certainly not opposed to this being merged, but when I implemented #8147, I didn't feel the text object was necessary, since you can emulate |
I mean, similar can be said about Another benefit is that you don't need to think about which keys specifically to use, or assign them yourself. |
this is a new text object which operates on parts of
snake_case
,kebab-case
,camelCase
,PascalCase
and/path/case
It's a subword, so it's mapped to s
Below is a table showcasing various use-cases of this new text object.
*
is just an indicator for where the cursor is and is not part of the textmis
selects an inner subword,mas
selects an outer subword which includes the delimiter.d
deletes the selection.misd
)masd