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

Add double and triple click selection #295

Conversation

kokoISnoTarget
Copy link
Contributor

This is and draft pr for #43.

@kokoISnoTarget kokoISnoTarget changed the title WIP: Add double and tripple click selection Add double and triple click selection Apr 3, 2024
@CosmicHorrorDev CosmicHorrorDev linked an issue Apr 4, 2024 that may be closed by this pull request
@kokoISnoTarget kokoISnoTarget marked this pull request as ready for review April 6, 2024 07:25
@CosmicHorrorDev CosmicHorrorDev self-requested a review April 6, 2024 16:51
@CosmicHorrorDev CosmicHorrorDev added the C-enhancement Category: New feature or request label Apr 6, 2024
Copy link
Collaborator

@CosmicHorrorDev CosmicHorrorDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another issue I noticed, but I'm not sure where in the code is the problem, but it seems like the selections pull in another word if you're double-clicking on a 1-2 character word, but 3+ seems fine


Overall most things seem to work great! (like really really great 🚀)

I left feedback on some bits I noticed and then there's also merge conflicts, but I'm super excited to get this merged

src/main.rs Show resolved Hide resolved
src/selection.rs Outdated Show resolved Hide resolved
src/selection.rs Show resolved Hide resolved
src/text.rs Outdated Show resolved Hide resolved
src/text.rs Outdated Show resolved Hide resolved
kokoISnoTarget and others added 7 commits April 11, 2024 15:57
This is added so we don't forget to redraw the window

Co-authored-by: CosmicHorror <CosmicHorrorDev@pm.me>
… check for the case cursor.index.. would retrun more than desired
Copy link
Collaborator

@CosmicHorrorDev CosmicHorrorDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks as always 🎉

@CosmicHorrorDev CosmicHorrorDev merged commit c0541d7 into Inlyne-Project:main Apr 13, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support double and triple click for highlighting text
2 participants