zellij icon indicating copy to clipboard operation
zellij copied to clipboard

Support double clicking to select on word boundaries

Open raphCode opened this issue 2 years ago • 13 comments

I see myself prefer the shift+click selection mode of my terminal emulator, because I can use double-click to select whole words. Double clicking and dragging selects the word under the cursor and extends the selection word-wise. This reduces the need to aim the cursor at character precision, which is very comfortable.

I need to reach out to zellij's selection only when I want to copy multiple lines, where the pane borders get in the way would I use the terminal's selection. It would be nice for zellij to support the described double-clicking behaviour as well.

raphCode avatar Mar 23 '22 12:03 raphCode

vote +1

vebodev avatar Jul 27 '22 05:07 vebodev

vote +1

qiaoboxy avatar Aug 02 '22 21:08 qiaoboxy

vote +1

naosense avatar Sep 19 '22 07:09 naosense

Please just give thumbs up on the top issue to prevent spam :)

Shouldn't this behaviour be entirely controlled by the terminal emulator (app), rather than by zellij?

thomasaarholt avatar Sep 30 '22 12:09 thomasaarholt

Please just give thumbs up on the top issue to prevent spam :)

Shouldn't this behaviour be entirely controlled by the terminal emulator (app), rather than by zellij?

While that would be nice, I fear it would no longer be possible to click and drag the selection beyond the currently visible area (i.e. drag up and have Zellij scroll up while selecting text)...

usagi-flow avatar Oct 01 '22 13:10 usagi-flow

Please just give thumbs up on the top issue to prevent spam :)

Shouldn't this behaviour be entirely controlled by the terminal emulator (app), rather than by zellij?

The terminal app does normally provide this functionality (and every terminal I've used has it), but you have to disable zellij's mouse_mode to get it back (which I'd rather not do because I like the feature).

barrykp avatar Oct 28 '22 08:10 barrykp

The terminal emulator is not aware of zellij's panes and using its selection is unsuited when more than one line should be selected: image

raphCode avatar Oct 28 '22 10:10 raphCode

Triple click to select an entire line is also useful for the same reasons

emosenkis avatar Nov 21 '22 08:11 emosenkis

If this is hard to implement, it would be a good idea to make the fullscreen borderless, this will allow the use of the terminal selection (typically with shift) with double and triple click without the border characters.

dominz88 avatar Jun 15 '23 15:06 dominz88

Yes, we definitely need Zellij to support double-click to select words, and drag to extend the selection.

As part of that, we would need the ability to define the character set for delimiting 'word' boundaries.

am-zest avatar Mar 12 '24 15:03 am-zest

If this is hard to implement, it would be a good idea to make the fullscreen borderless, this will allow the use of the terminal selection (typically with shift) with double and triple click without the border characters.

I find this enough for me in Windows Terminal. Shift+DblC for a word selection and Shift+RgtC for de-selection.

avila-m-6 avatar Apr 01 '24 16:04 avila-m-6