Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Jan 16, 2025

Fixes #1508

This PR results in the search term persisting until editing or closing the search bar. Making a new selection in the document no longer replaces the search term in the searchbar until Control + F is pressed again (Control + G continues to search the current search term).

To be confirmed: Should an existing search term be cleared on pressing Control + F? As it is unclear whether the user intends to start a completely new search or modify the current one it is left for the user atm.

The search term is cleared when the searchbar is hidden.
The code is somewhat simpler and DRYer.
The searchbar is made more self-contained - it now includes the revealer and hides some of its internal working from MainWindow. Some names are made more accurately descriptive of what they are/do.

@jeremypw jeremypw marked this pull request as draft January 24, 2025 16:55
@jeremypw
Copy link
Collaborator Author

Reverting to draft after some issues came to light while dog-fooding

@jeremypw jeremypw marked this pull request as ready for review January 25, 2025 18:31
@jeremypw
Copy link
Collaborator Author

Outstanding issues should be fixed now.

@jeremypw jeremypw requested a review from zeebok February 4, 2025 14:46
@jeremypw jeremypw merged commit 09c844e into master Apr 18, 2025
6 checks passed
@jeremypw jeremypw deleted the jeremypw/fix-search-term-after-selection-change branch April 18, 2025 13:46
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.

Search term disappears unexpectedly when editing text

3 participants