helix icon indicating copy to clipboard operation
helix copied to clipboard

Added non interactive select_textobject commands

Open mitsuhiko opened this issue 3 years ago • 2 comments

Hidden behind the select_textobject_inner and select_textobject_around menu are very useful selection options. However they cannot be directly bound to keys currently. You can only bring up the select_textobject_inner popup and then put a command into it. There are however quite a few cases where it's convenient to directly use one of the methods underneath.

This exposes most of these as commands with the exception of pair selection since there is no obvious best way to do that.

With this you can for instance do select_textobject_inner_word to do what miw does.

Loosely related issues:

  • #4013
  • #1595

mitsuhiko avatar Oct 15 '22 09:10 mitsuhiko

Related to #1723 ?

tmke8 avatar Oct 15 '22 09:10 tmke8

Indeed. I did not find that PR somehow. That one goes significantly farther and also makes the keymaps configurable. I'm not sure if this PR makes sense then but I will leave it open for now. I think as a first step it might be a smaller change.

mitsuhiko avatar Oct 15 '22 09:10 mitsuhiko