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

feat: Double click selects word, Triple click selects line #12514

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

nik-rev
Copy link
Contributor

@nik-rev nik-rev commented Jan 12, 2025

this PR improves mouse support by implementing 2 functionalities common in other text editors:

  • Double-clicking selects the word
  • Triple-clicking selects the full line

It is desirable to implement this in the editor as it provides cross-terminal support as well as, allowing functionality that terminal emulators won't be able to provide: such selecting the entire line in the document.

Closes #12500

helix-view/src/input.rs Outdated Show resolved Hide resolved
@nik-rev
Copy link
Contributor Author

nik-rev commented Jan 16, 2025

Just did some refactors, fixed a bug and added tests which consider various edge cases. PR is really ready for review now!

@kirawi kirawi added the A-helix-term Area: Helix term improvements label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mouse double click to select word, triple click to select line
3 participants