I write software and play with websites in my spare time, mostly using Notepad++. One of the banes of my existence is that there is no 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 on Superuser.com, 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.
I got fed up with this and created a script for my own use, 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 1/14/2014 to fix a bug in detecting the undocked window