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

F3 无法更换查找的文本 #917

Open
xxxdo1 opened this issue Nov 17, 2024 · 5 comments
Open

F3 无法更换查找的文本 #917

xxxdo1 opened this issue Nov 17, 2024 · 5 comments

Comments

@xxxdo1
Copy link

xxxdo1 commented Nov 17, 2024

F3 无法更换查炸的文本, 看下面gif
首次选择一段文本, 使用F3, 它能寻找下一个匹配项, 然后再选择一段新的文本, 使用F3, 它无法查找新的文本

Video_2024-11-17_19·08·16

@zufuliu zufuliu changed the title F3 无法更换查炸的文本 F3 无法更换查找的文本 Nov 17, 2024
@zufuliu
Copy link
Owner

zufuliu commented Nov 17, 2024

The change (8d1ce64) for issue #862 only works when find text is empty, otherwise it directly uses current find text to find next occurrence as said in release note, you can use Ctrl+F3 to force find next occurrence of current selected text.

Change F3/Shift+F3 to directly find next/previous occurrence of current selected text (similar to Ctrl+F3/Ctrl+Shift+F3) when find text not initialized, issue #862. 8d1ce64

@xxxdo1
Copy link
Author

xxxdo1 commented Nov 17, 2024

@zufuliu
建议将快捷键Ctrl+F3更改为F3, 这是大多数编辑器所默认的习惯.

@zufuliu
Copy link
Owner

zufuliu commented Nov 17, 2024

建议将快捷键Ctrl+F3更改为F3

It will be breaking change when finding text with regex (or transform backslashes) and use F3 to find next occurrence.

notepad4/src/Edit.cpp

Lines 4634 to 4635 in e53e433

lpefr->fuFlags &= SCFIND_REGEXP - 1; // clear all regex flags
lpefr->option &= ~FindReplaceOption_TransformBackslash;

@xxxdo1
Copy link
Author

xxxdo1 commented Nov 18, 2024

@zufuliu
You can do this, change the Ctrl+F3 shortcut to F3, keep all checkboxes marked, and find the next text.
Add Alt+F3 to clear all checkboxes marked, and find the next text, so there will be no conflict.

@zufuliu
Copy link
Owner

zufuliu commented Nov 20, 2024

This is uncommon behavior, tested Windows Notepad, Sublime Text and VS Code, when find text is empty, on press F3, only VS Code use current selected text to find next, however like Notepad4 when another text is selected, press F3 still use previous selected text instead of current selection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants