- Notifications
You must be signed in to change notification settings - Fork112
Added Select Next/Previous Occurrence commands#330
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
thecoolwinter commentedJun 3, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Okay a few things here after some review:
In the end, I got this mostly working after spending a while on it but I don't think this is the path we should go. This is mixing concerns with the find panel and this feature and just causing a headache to try and sift through the extra logic this introduces to the find model. It also introduces some odd behaviors like:
I feel like this could be a smaller change, I think it should(?) require:
|
thecoolwinter commentedJun 3, 2025
If we do need to keep around some tracked state to make this work, I think it should be in a new class. I did end up getting it to work but it was hacky and made the find model unnecessarily complex |
austincondiff commentedJun 3, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@thecoolwinter I see your points and they are all valid. I first wanted to see if I could get it to work so I rushed through a lot of this and didn't take the time to clean it up, so thats on me. Let me clean it up and I'll let you know where I end up with this. I'll put this PR in draft status in the mean time. |
Uh oh!
There was an error while loading.Please reload this page.
Description
Adds Select Next Occurrence (⇧⌥⌘E) and Select Previous Occurrence (⇧⌥⌘E) commands.
Respects Wrap Around and Match Case settings in the Find panel.
Related Issues
Checklist
Screenshots
Screen.Recording.2025-06-02.at.1.30.31.PM.mov