Skip to content
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

Feature Request: Add options for motion exclusivity #49

Open
1 task done
TheSast opened this issue Sep 27, 2024 · 0 comments
Open
1 task done

Feature Request: Add options for motion exclusivity #49

TheSast opened this issue Sep 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@TheSast
Copy link

TheSast commented Sep 27, 2024

Feature Requested

(This only concerns operator-pending mode)
The other day while discussing the default w e b ge motions with @titaniumtraveler they noticed another possible incoherence or lack of flexibility with them.

Notably, that only w is end position exclusive while every other one is not.

motion direction target end position exclusive start position exclusive
w forward start yes no
e forward end no no
b backward start no yes
ge backward end no no (default) yes (spider)

I should mention that the default implementation of ge excludes the start position character like b does, while this plugin's version includes it.

The inconsistency mentioned in the table above was noticed because of the fact that with (default) ge it is not possible to cleanly delete a word and one side of it's whitespace from the end foo ba* baz -dge-> fo baz while w can foo *ar baz -dw-> foo baz.

The ability to set whether an operation includes the start and/or end position of the motion would allow for the end position exclusive version of ge to be present for those who wish it (I also suggest to use this behavior as the default for ge).
This would work together with custom patterns, for example for those who want to also have a gE that is end position exclusive.

Relevant Screenshot

No response

Checklist

  • The feature would be useful to more users than just me.
@TheSast TheSast added the enhancement New feature or request label Sep 27, 2024
@TheSast TheSast changed the title Feature Request: Add option for motion exclusivity Feature Request: Add options for motion exclusivity Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant