-
Notifications
You must be signed in to change notification settings - Fork 202
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
Gradual movement (regex query string, goto_next and goto_previous without specifying start / end) #360
Conversation
abaf39a
to
397a438
Compare
How complicated would it be it integrate https://github.com/nvim-treesitter/nvim-treesitter-textobjects/pull/60/files in your PR for |
Any reason it hasn't been merged? Where should the |
It isn't about I was a bit hesitant whether we should allow this right now and now it is a bit out-dated. There we a lot of PRs touching the same code at that time. But since you're touching the config anyways you could also make it more general. At least it should be possible to add alternative query groups in retroperspecitve |
@theHamsta I see, the scope movement is actually amazing! |
Should I make multiple query groups selectable? I feel like this will make it super complicated and most people wouldn't really select from multiple groups? |
Finished integrating #60 |
Tests passing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, cool! I actually only meant to consider it for movement to see whether the config stays compatible without adding too much code. But cool that you made it working for all categories
Before merging #359 I wanted to show you this.
At the moment, my keymaps are quite polluted.
This patch enables you to group things together if you wish.
(I just noticed that you can already add multiple queries, however it isn't documented)
Along with the power of repeatable movements, for some people it may be a good bonus as they can go to the right part they want without going for a complicated keymapping.
The regex queries are supported in the original
goto_next_start
etc. as well.It will stay mostly compatible with the previous setup, except that now the dot will match any character. If you have a custom query named
@functionQinner
then it will be matched with@function.inner