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 功能体验, 优化建议, #862

Open
xxxDo1 opened this issue Sep 21, 2024 · 4 comments
Open

F3 功能体验, 优化建议, #862

xxxDo1 opened this issue Sep 21, 2024 · 4 comments

Comments

@xxxDo1
Copy link

xxxDo1 commented Sep 21, 2024

选中一段文本 "settings", 按F3, 不显示查找对话框, 直接查找下一个匹配项, Alt+F3 查找上一个匹配项,

image

快速查找关键词, 这样会方便很多

@zufuliu
Copy link
Owner

zufuliu commented Sep 21, 2024

It's indented to open the dialog:

notepad4/src/Notepad4.cpp

Lines 3810 to 3820 in c547da6

if (StrIsEmpty(efrData.szFind)) {
if (LOWORD(wParam) != IDM_EDIT_REPLACENEXT) {
SendWMCommand(hwnd, IDM_EDIT_FIND);
} else {
SendWMCommand(hwnd, IDM_EDIT_REPLACE);
}
} else {
switch (LOWORD(wParam)) {
case IDM_EDIT_FINDNEXT:
EditFindNext(&efrData, false);

@xxxDo1
Copy link
Author

xxxDo1 commented Sep 21, 2024

可以优化一下这个功能吗, 或者可以增加一项配置

@xxxDo1
Copy link
Author

xxxDo1 commented Sep 21, 2024

这需要判断 "查找对话框" 是否打开状态, F3以 "查找对话框" 查找下一个匹配项, 或者以 "选中文本" 查找下一个匹配项

@xxxDo1
Copy link
Author

xxxDo1 commented Sep 21, 2024

F3 这个功能在 Visual Studio Code 也有, 非常希望能把它优化一下

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