Answers:
有时我找不到“搜索结果”窗口。我按F7键显示它,但是没有运气,我知道我也没有将窗户作为单独的窗户卸下。然后,有人建议我可能一直将其最小化到状态栏。因此,如果您不小心这样做了:
另请注意,“搜索结果”窗口也可以停靠在窗口的左侧,右侧或顶部。如果将鼠标悬停在状态栏顶部时,如果没有显示垂直调整大小形状,请尝试将光标移到这些边附近。出现垂直状态栏后,只需单击鼠标左键,然后向内向窗口中心拖动以显示缺少的搜索结果窗口。
我希望这个建议可以帮助其他一些像我一样沮丧的人。
无法直接在其中进行操作Notepad++
,但是可以使用AutoHotKey进行操作。以下脚本将从F7
仅打开的快捷方式转换为切换;如果尚未打开,则将其打开;如果尚未打开,则将其关闭。
这是脚本:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Ed Cottrell's AutoHotKey script for toggling the "Find Results" pane/window in Notepad++
; Released under the MIT License (http://opensource.org/licenses/MIT)
; Version: 1.1
; Release Date: January 15, 2014
; Released on Superuser.com: http://superuser.com/questions/700357/create-a-hotkey-keyboard-shortcut-to-close-the-notepad-find-results-window
; Also released at www.edcottrell.com/2014/01/11/toggle-find-results-window-notepad-hotkey/
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Turn F7 into a toggle for the Notepad++ search results window; currently it shows it, but doesn't hide it.
; The $ prevents this from firing itself
*$F7::
Open := 0
SetTitleMatchMode 2 ; AHK doesn't seem to recognize the window title otherwise
; See if Notepad++ is the active window or if the undocked results window (ahk_class #32770) is the active window
If WinActive("Notepad++")
{
; If the results pane is open, close it
; Button1 is the class name for the title bar and close button of the results pane when docked
ControlGet, OutputVar, Visible,, Button1, Notepad++
if ErrorLevel = 0
{
If OutputVar > 0
{
; Found it docked
Open := 1
; Get the size and coordinates of the title bar and button
ControlGetPos, X, Y, Width, Height, Button1
; Set the coordinates of the close button
X := Width - 9
Y := 5
; Send a click
ControlClick, Button1,,,,, NA x%X% y%Y%
}
}
}
; If it is undocked, use ahk_class #32770
else If WinExist("Find result ahk_class #32770")
{
; Found it undocked
Open := 1
; Close it
WinClose
}
; It's not open, so open it
if Open = 0
{
SendInput {F7}
}
return
希望这可以帮助其他所有喜欢的人Notepad++
!
编辑以修复检测未停靠的窗口中的错误。
#IfWinActive ahk_class Notepad++
对前*$F7::
从此页面找到了答案 http://forum.groovypost.com/windows-xp/lost-window-off-screen-t96201.html
就我而言,我关闭了该窗口,当我再次搜索文档时,它显示在右上角,然后将其停靠在后面!
切换搜索结果窗格的功能是一个奇怪的缺失功能。甚至更奇怪,因为有人编写了将代码分配给F7键正确行为的代码。您可以修补代码并自己编译,也可以下载他还提供的二进制文件(有点过时)。
如果您希望在Notepad ++中切换搜索结果窗口,您所要做的就是将“搜索结果窗口”拖到页面的最右端,并通过释放鼠标控件将其放到该页面的最右端。我尝试了一下,并成功地工作了。
尝试选择``查看'',然后选择``始终在顶部''搜索栏将出现在监视器上(如果像我的一样,如果在屏幕底部,因为我几乎错过了它),然后将``查找''窗口拖回到记事本上++并将其停靠在您喜欢的程序中。
顶部的问题恰好与另一个被视为重复的非公开讨论有关。其他讨论中的问题是:“如何取消隐藏notepad ++搜索结果窗口?”
我也遇到了这个令人烦恼的问题,可惜这里没有答案对我有帮助。但是我设法在其他地方找到另一个答案,它可以解决我的问题。它可以在这里找到:
https://wordpress.org/support/topic/a-quick-question-about-finding-my-find-all-in-notepad。
并且以防万一它被删除,这是解决方案:
按F7帮助可打开搜索窗口,其中所有与您的搜索词/语句等有关的行都会打开。
我喜欢notepad ++,它使我们的生活变得轻松。