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

Allow to select from the start of the line on some nodes

Open stsewd opened this issue 3 years ago • 2 comments

Needs https://github.com/nvim-treesitter/nvim-treesitter/pull/1953

This is an alternative solution for the problem described at https://github.com/nvim-treesitter/nvim-treesitter-textobjects/pull/70.

stsewd avatar Dec 20 '21 22:12 stsewd

I think auto_expand doesn't make sense as a global option. It would also select parameters line-wise. Would be better as a per-textobject option.

theHamsta avatar Dec 21 '21 14:12 theHamsta

that will only be for parameters that don't have a trailing comma, but I get it, better to have per-mapping/object options (would also be useful for the lookahead/lookbehind options). Currently, we don't have a way to do that, I'll open an issue with suggestions for a way to define those options.

stsewd avatar Dec 21 '21 18:12 stsewd

I think this PR is really old at this stage, Please reopen rebased if still relevant

theHamsta avatar Jan 17 '23 20:01 theHamsta