Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support double clicking to select on word boundaries #1258

Open
raphCode opened this issue Mar 23, 2022 · 13 comments
Open

Support double clicking to select on word boundaries #1258

raphCode opened this issue Mar 23, 2022 · 13 comments
Labels
enhancement New feature or request mouse Issues related to mouse events

Comments

@raphCode
Copy link
Contributor

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.

@a-kenji a-kenji added enhancement New feature or request mouse Issues related to mouse events labels Mar 23, 2022
@tlinford tlinford changed the title Support double clicking to select on work boundaries Support double clicking to select on word boundaries Mar 29, 2022
@vebodev
Copy link

vebodev commented Jul 27, 2022

vote +1

2 similar comments
@qiaoboxy
Copy link

qiaoboxy commented Aug 2, 2022

vote +1

@naosense
Copy link
Contributor

vote +1

@thomasaarholt
Copy link

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?

@usagi-flow
Copy link

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)...

@barrykp
Copy link

barrykp commented Oct 28, 2022

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).

@raphCode
Copy link
Contributor Author

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

@emosenkis
Copy link

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

@dominz88
Copy link

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.

@am-zest
Copy link

am-zest commented Mar 12, 2024

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.

@avila-m-6
Copy link

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.

@ndsky1003
Copy link

一年了都没解决这问题

@emosenkis
Copy link

@ndsky1003 This is a volunteer project. No one is entitled to having someone else add any features or even fix any bugs, unless you're sponsoring the author at the $100 tier or more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mouse Issues related to mouse events
Projects
None yet
Development

No branches or pull requests