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

Mouse double click to select word, triple click to select line #12500

Closed
peterjc opened this issue Jan 11, 2025 · 3 comments · May be fixed by #12514
Closed

Mouse double click to select word, triple click to select line #12500

peterjc opened this issue Jan 11, 2025 · 3 comments · May be fixed by #12514
Labels
C-enhancement Category: Improvements

Comments

@peterjc
Copy link

peterjc commented Jan 11, 2025

It is expected on macOS and Windows that double click will select a word, and triple click selects more (seems to be context dependent, but typically a whole line). See e.g. https://stackoverflow.com/questions/2575758/conventions-for-the-behavior-of-double-or-triple-click-to-select-text-features which includes links to Apple and Microsoft guidance.

It would be nice if the helix mouse support could do the same. See https://github.com/zyedidia/micro/blob/master/README.md for another terminal editor which offers this, they claim:

Extremely good mouse support.

This means mouse dragging to create a selection, double click to select by word, and triple click to select by line.

(I'm unsure that mouse dragging would be considered suitable for helix, but selection seems relevant to me at least.)

Testing helix 25.1 on macOS and Linux (via ssh from macOS), double and triple click appear to have no effect. This is working in micro 2.0.14 though.

@peterjc peterjc added the C-enhancement Category: Improvements label Jan 11, 2025
@nik-rev
Copy link
Contributor

nik-rev commented Jan 12, 2025

This seems to be dependent on the terminal emulator. I'm using Wezterm. Double click selects a word, triple click selects the whole line just as you said

@the-mikedavis
Copy link
Member

Duplicate of #10208

@the-mikedavis the-mikedavis closed this as not planned Won't fix, can't repro, duplicate, stale Jan 12, 2025
@peterjc
Copy link
Author

peterjc commented Jan 12, 2025

Apologies, I guess I only searched the issues and not discussions. Thanks @the-mikedavis 👍

@nik-rev I have the same from Ghostty, for example at the shell - double click selects a word, triple click selects the whole line. However within helix nothing happens, but more to the point I want a helix selection that I can then act on (eg d to delete). This is the same point as #10208 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants