I have always wished that Notepad++
had a keyboard shortcut for closing the Find Results pane / window that appears when I do one of the following:
- Find All in All Opened Documents
- Find All in Current Document
- Find All (in multiple files)
There isn't one built in, as discussed in this question, as well as this one and this one; F7
opens the pane or window, but doesn't close it. The second question link above suggests that Esc
will close the pane or window, but this doesn't work for me, at least in Notepad++ >= 6.
Is there a way to create a hotkey or keyboard shortcut to close the "Find Results" pane / window?
Best Answer
There is, using AutoHotKey. The following script will convert
F7
from an open-only shortcut to a toggle; it opens it if it isn't already open, and closes it if it is.Here is the script:
I hope this helps everyone else out there who loves
Notepad++
!Edited to fix error in detection of undocked window.