-
Notifications
You must be signed in to change notification settings - Fork 47
Text object movement #23
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
Comments
So I guess no progress has been made here? I miss this feature from Sublime :( |
Sorry for a late response. And sorry about the document. The current document is wrong. There is no support for |
Cool, thanks for confirming -- I haven't taken a closer look at this since the original ticket, but I can if I can be of any help. |
Almost right. But And generally |
Awesome. I'll see if I can try and give this another shot at some point. |
Hey!
@JosephFerano noticed on a vim-textobj-variable-segment ticket that there are parameters to
plugin
that allow defining a function / pattern for moving to the next text object.I've been playing around a bit with trying to hook that up, but haven't had much success, and can't really find any other text objects that use
move-[n|p](-function)
.From the docs, it seems like the API these functions are supposed to return is the same as the select functions, i.e.
type, start_position, end_position
, but I'm not sure I see how that should be necessary – it seems likemove-n
should wanttype, end_position
andmove-p
should wanttype, start_position
, and further, it seems like they should not really need defining separately, they're inferable from the select functions. Have I misunderstood something?(If I add a
move-n-function
which is just myselect-a-function
I see something happen, the appropriate range looks like it's being found, but oddly, I just see it get visual selected, and the cursor doesn't keep moving if I keep move-n'ing.)The text was updated successfully, but these errors were encountered: