kitty_grab icon indicating copy to clipboard operation
kitty_grab copied to clipboard

Select the whole line with a single short cut

Open marconetto opened this issue 2 years ago • 4 comments

Is there any shortcut to select the whole current line?

The current way I'm doing it is to use 'a' to go the the beginning and then shift+e to go to the end. Not sure if it is the most efficient way.

marconetto avatar Jun 10 '22 17:06 marconetto

Not currently. I normally move to the beginning with arrows or Home, and then Shift+End. Other times, I need the whole line with the newline included, so Shift+↓ works.

How do you envision this hypothetical “select line” key working?

  • If there is no selection, set start at start of current line and end at end of current line, this much is obvious.
  • If there is a stream selection, what do we do?
  • If there is a rectangular selection, what do we do?
  • What would be the default binding and why?

yurikhan avatar Jun 10 '22 18:06 yurikhan

Perhaps something similar to visual line selection in vim, in which at any place in the line you type "V", and the whole line is selected.

wondering if in grab.conf it would be possible to do something like this:

map V combine : move first nonwhite : select stream last nonwhite

marconetto avatar Jun 10 '22 18:06 marconetto

If you want vim maybe you could use the real thing as described in https://github.com/kovidgoyal/kitty/issues/719#issuecomment-952039731.

yurikhan avatar Jun 11 '22 06:06 yurikhan

Triple-click works, too :)

pallaswept avatar Oct 16 '23 14:10 pallaswept