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(mouse): double-click to mark word boundaries, triple-click to mark paragraph #3996

Merged
merged 3 commits into from
Feb 16, 2025

Conversation

imsnif
Copy link
Member

@imsnif imsnif commented Feb 16, 2025

2025-02-16.17-33-44.mp4

This implements the much requested feature where double-clicking a word the the mouse marks it, and triple clicking it marks the entire paragraph (canonical line).

This also somewhat changes the behavior of marking text. Previously, when we marked text with the mouse, it would immediately be copied to the clipboard and the selection would disappear from the screen.

This changes it so that the text is still immediately copied to the clipboard, but the selection stays on screen until the user sends another input (keyboard click or mouse click). I feel this is more convenient and closer to how other applications which allow marking text behave.

@imsnif imsnif merged commit b04cddc into main Feb 16, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant