Allow multiple queries for select
to increase configurability
#555
Labels
enhancement
New feature or request
select
to increase configurability
#555
Is your feature request related to a problem? Please describe.
Some select text objects I don't want to map to their own individual keys and would rather just take the first one available from a list of queries.
Describe the solution you'd like
Similar to the
move
andswap
text objects, it would be amazing to supply regex or a list of queries to aselect
text object. That way we can bind several queries easily to a single keymap.Describe alternatives you've considered
I'm not sure if there is any other alternative other than just mapping each query to it's own mapping
Additional context
I'm curious if there is an architectural limitation that kept this from being implemented in the first place when multiple query support was added to
move
andswap
. Plugins likemini.ai
have support for utilitizing thenvim-treesitter-textobjects
queries to construct select mappings with multiple queries which leads me to believe it should be doable here as well.Thanks so much for everyone's work here maintaining and developing this plugin, it is a godsend!
The text was updated successfully, but these errors were encountered: