feature: Treesitter: expand selection
Did you check the docs?
- [X] I have read all the flash.nvim docs
Is your feature request related to a problem? Please describe.
First, I like the plugin, but I can't use it as often as I wish.
My day-to-day job is developing Flutter apps (written in Dart). There, I have a lot of <Constructor>(). But the Treesitter mode (S) only selects the body of the constructor without the class name:
Is there a way to expand the selection to include the class name? See AnimatedBuilder or MaterialApp.
Describe the solution you'd like
In an ideal world, the plugin would automatically add the name of the constructor to the selection. But it would be enough to have a function to do this manually.
Describe alternatives you've considered
I've tried ; but it doesn't do what I'm looking for.
Additional context
No response
I think I have found a way to achieve what I wanted.
- select code block with
S - jump to the start/end of the selection with
O - increase/decrease selection
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
That's caused by the treesitter parse tree, so not possible to fix...