From c188287b3454bf1866e30c3d2a83515b0ae0f6de Mon Sep 17 00:00:00 2001 From: PeterCJ Date: Wed, 20 Dec 2023 06:09:25 -0800 Subject: [PATCH 1/2] Incremental Search improvements closes #610 --- content/docs/searching.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/docs/searching.md b/content/docs/searching.md index b299ed70..d030963c 100644 --- a/content/docs/searching.md +++ b/content/docs/searching.md @@ -385,13 +385,15 @@ Incremental search is similar to the searching capabilities found in your favori This command will show a small region at the bottom of the Notepad++, which has a few simple features. -* The **X** allows you to close out of Incremental Search. -* The **Find** box is where you type your literal search term. +* Clicking the **X** button allows you to close the Incremental Search window and return to the editor window. If a control in the Incremental Search window currently has input focus, e.g. if you are typing into the Find box, another way to close the window is by pressing the Esc key. +* The **Find** box is where you type your literal search term. As you type, the editor window will move the selection to the next match for the contents of Find (hence, the "incremental" search because as you "incrementally" change the search term, it will update the match). * The **<** and **>** buttons navigate backward and forward through the search results (wrapping around when it reaches the end or start of the document). * If the **☐ Highlight all** checkbox is not checked, it will only highlight the current match; if it is checked, all matches will be highlighted. * If the **☐ Match case** checkbox is checked, the results will only match if case is exactly the same, otherwise case doesn't matter. * To the right of those checkboxes, a message about the results will occur: either the number of matches, a message that indicates that you've wrapped around to the top or bottom of the document, or "Phrase not found" if there are no matches. When there are no matches, the **Find** box also changes color. +Starting in v8.6.1, the shortcut keys for **Find Next** and **Find Previous** (defaults are `F3` and `Shift-F3`, respectively) work when input focus is in the Incremental Search window, e.g. when you are typing into the Find box, and you want the editor to move to a different match. This avoids needing to reach for the mouse in order to press the **>** or **<** buttons to move between matches. + ## Extended Search Mode In extended mode, these escape sequences (a backslash followed by a single character and optional material) have special meaning, and will not be interpreted literally. From 71e91e9369d05f9dba3dced8f395ade0be3ea494 Mon Sep 17 00:00:00 2001 From: PeterCJ Date: Wed, 20 Dec 2023 06:30:43 -0800 Subject: [PATCH 2/2] Incremental Search: backticks for `Esc` key --- content/docs/searching.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/searching.md b/content/docs/searching.md index d030963c..404b9d7a 100644 --- a/content/docs/searching.md +++ b/content/docs/searching.md @@ -385,7 +385,7 @@ Incremental search is similar to the searching capabilities found in your favori This command will show a small region at the bottom of the Notepad++, which has a few simple features. -* Clicking the **X** button allows you to close the Incremental Search window and return to the editor window. If a control in the Incremental Search window currently has input focus, e.g. if you are typing into the Find box, another way to close the window is by pressing the Esc key. +* Clicking the **X** button allows you to close the Incremental Search window and return to the editor window. If a control in the Incremental Search window currently has input focus, e.g. if you are typing into the Find box, another way to close the window is by pressing the `Esc` key. * The **Find** box is where you type your literal search term. As you type, the editor window will move the selection to the next match for the contents of Find (hence, the "incremental" search because as you "incrementally" change the search term, it will update the match). * The **<** and **>** buttons navigate backward and forward through the search results (wrapping around when it reaches the end or start of the document). * If the **☐ Highlight all** checkbox is not checked, it will only highlight the current match; if it is checked, all matches will be highlighted.