yurikhan / kitty_grab

Keyboard-driven screen grabber for Kitty
GNU General Public License v3.0
178 stars 12 forks source link

Select the whole line with a single short cut #20

Open marconetto opened 2 years ago

marconetto commented 2 years ago

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.

yurikhan commented 2 years ago

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?

marconetto commented 2 years ago

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

yurikhan commented 2 years ago

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

pallaswept commented 1 year ago

Triple-click works, too :)