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

Configurable "Find next"/"Find previous" behavior #3570

Merged

Conversation

UffeJakobsen
Copy link
Contributor

@UffeJakobsen UffeJakobsen commented Jan 10, 2025

Subject: Configurable "Find next"/"Find previous" behavior

"Find next"/"Find previous" behavior can now be configured

"Find next as caret"/"Find previous at caret" behavior is unchanged

"Find next"/"Find previous" actions:

Existing behavior: selected text is used as new search text - (like "Find next as caret"/"Find previous at caret")

New optional behavior: selected text is ignored - existing search text is used

The new optional behavior also solves problem reported in issue #3568:
Where regex find patterns are deleted by selected text upon repeating Find next/Find previous

Plugin/optionsconfig.cpp Outdated Show resolved Hide resolved
Plugin/optionsconfig.h Outdated Show resolved Hide resolved
Plugin/optionsconfig.h Outdated Show resolved Hide resolved
LiteEditor/frame.cpp Outdated Show resolved Hide resolved
@UffeJakobsen UffeJakobsen force-pushed the master_uj_find_next_prev_selection_logic branch 2 times, most recently from bb1169c to 7bbf704 Compare January 10, 2025 22:16
"Find next"/"Find previous" behavior can now be configured

"Find next as caret"/"Find previous at caret" behavior is unchanged

"Find next"/"Find previous" actions:

Existing behavior: selected text is used as new search text - (like "Find next as caret"/"Find previous at caret")

New optional behavior: selected text is ignored - existing search text is used

The new optional behavior also solves problem reported in issue eranif#3568

Regex find patterns are delete by selected text upon repeating Find next/Find previous
@UffeJakobsen UffeJakobsen force-pushed the master_uj_find_next_prev_selection_logic branch from 7bbf704 to c48d7df Compare January 10, 2025 22:18
@UffeJakobsen UffeJakobsen requested a review from eranif January 10, 2025 23:56
@eranif eranif merged commit a835f35 into eranif:master Jan 11, 2025
4 checks passed
@UffeJakobsen UffeJakobsen deleted the master_uj_find_next_prev_selection_logic branch January 11, 2025 21:19
@UffeJakobsen
Copy link
Contributor Author

Thanks 👍 :-)

@eranif
Copy link
Owner

eranif commented Jan 11, 2025

If this PR fixes your issue, please close it 🙏🏽

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