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

fix: Search string highlighted after pressing Ctrl+F again #394

Merged

Conversation

Drachenkaetzchen
Copy link
Contributor

This PR bumps the version for @codemirror/search 0.19.2:

Make sure any existing search text is selected when opening the search panel. Add search config option to not match case when search panel is opened (#4)

Original problem:

  • If Ctrl+F is hit once, and some search string is entered, a subsequent Ctrl+F doesn't highlight the previous search string, so everything typed is appended. The usual implementation of Ctrl+F is to mark the text in the text box, so that it can be easily overwritten
    -- Example: If I hit Ctrl+F, then search for "bed", then hit Ctrl+F again and type "temp", the search input box would contain "bedtemp" instead of "temp".

As a bonus, case insensitive search is now the default and is configurable. If wanted, I can add an option to mainsail to enable case sensitive search.

these bugfixes:

> Make sure any existing search text is selected when opening the search panel. Add search config option to not match case when search panel is opened (mainsail-crew#4)
@Drachenkaetzchen Drachenkaetzchen changed the title Bump the version for @codemirror/search to 0.19.2 to fix the search fix: Search string highlighted after pressing Ctrl+F again Oct 26, 2021
@meteyou meteyou merged commit 330dee0 into mainsail-crew:develop Oct 27, 2021
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.

2 participants