-
Notifications
You must be signed in to change notification settings - Fork 1
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
Inconsistency with repeated motion #7
Comments
Whoops, accidentally duplicated with #1, but I spent so much time on the examples... |
:( |
@qstrahl any chance this plugin will be extended so that a visual selection can grow? |
@kiryph I've always planned to fix it, but I haven't found the time - plus, thinking about these text objects for very long makes my head spin. :P I would happily welcome a patch... otherwise I'm afraid you're stuck on my "when I feel like it" schedule. |
@qstrahl Thanks for the quick feedback. I guess I picked the wrong time of the year to ping someone to hope to get him to add a great missing feature 😇. I am actually using https://github.com/michaeljsmith/vim-indent-object which can grow a visual selection. However, I've always been unsure what the best definition for a text object for indentation should be. The definition of
I am not unhappy with it, but e.g. class Parrot:
def __init__(self):
self._voltage = 100000
@property
def voltage(self):
"""Get the current voltage."""
return self._voltage I think your definition based on optionally including blank lines could be a more flexible approach. I could imagine something like |
Let
( )
denote the cursor position and[ ]
denote visual selection.Consider this behavior of word objects:
By analogy, your plugin should behave like this:
The text was updated successfully, but these errors were encountered: