How to multiselect textobjects? #14557
Unanswered
azymohliad
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! Is it possible to select multiple functions, types, or other tree-sitter textobjects when iterating through them with
[and]as separate selections? My first, incorrect, intuition was that the select mode would work with[/]jumps like it works withn/Nduring search - adding separate selections instead of selecting everything until the next textobject.My current use-cases are: copying function signatures between C/C++ definitions and declarations, copying a bunch of types for re-exports, adding placeholder documentation comments for multiple types/functions at once, but I can imagine many other situations where it would be useful. My old VSCode approach was to find a common text and multi-select with it, but with textobjects it could be so much more powerful and reliable.
Beta Was this translation helpful? Give feedback.
All reactions