nvim-treesitter-textobjects icon indicating copy to clipboard operation
nvim-treesitter-textobjects copied to clipboard

Accept counts

Open theHamsta opened this issue 5 years ago • 6 comments

Would be nice if the move commands could accept counts. And also the select commands could accept counts to select an outer textobject in a nested structure.

theHamsta avatar Oct 04 '20 12:10 theHamsta

as in v2af selecting 2 functions? If so, yes, that would be very nice (I came here to file that feature request)

sanga avatar Oct 23 '20 09:10 sanga

as in v2af selecting 2 functions? If so, yes, that would be very nice (I came here to file that feature request)

Yes, precisely that but maybe also to select the outer ones of two nested functions.

theHamsta avatar Oct 23 '20 10:10 theHamsta

Would be nice if the move commands could accept counts. And also the select commands could accept counts to select an outer textobject in a nested structure.

Select outer and inner, I think here is. https://github.com/nvim-treesitter/nvim-treesitter#incremental-selection

singlexyz avatar Apr 08 '21 15:04 singlexyz

Will add the count option soon, this will also make the plugin a lot faster...

theHamsta avatar Apr 08 '21 15:04 theHamsta

Any news on implementation of this?

jameswalmsley avatar Jul 07 '21 20:07 jameswalmsley

would this also cover the use case for jumping to a second match for instance deleting the second argument in a function d2]a

danielnehrig avatar Jan 20 '22 02:01 danielnehrig