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

Support extending the current selection by repeating a custom text object #28

Open
kana opened this issue Apr 24, 2014 · 1 comment
Open

Comments

@kana
Copy link
Owner

kana commented Apr 24, 2014

Several built-in text objects can be repeated to extend the current selection. For example, vawawawaw... and vabababab.... It's not trivial how to extend the current selection for each custom text object, so that vim-textobj-user can't support this behavior by default. It have to be implemented by each custom text object.

To implement this behavior, it's necessary to know

  • Whether a text object is used in Visual mode, and
  • The current selection.

Perhaps the correct information cannot be retrieved with built in functions, so it might be necessary to add or extend API to provide these information.

@kana
Copy link
Owner Author

kana commented Apr 24, 2014

Since a process to extend the current selection is orthogonal to a process to select a text object, it might be better to add another property like extend to specify how to extend the current selection (by a user-defined function). Extending processes for custom text objects sometimes are the same as ones for built in text objects such as aw, ip and others. So that it would be better to provide functions for the processes by vim-textobj-user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant