; 支持SciTE和Notepad++.
; Ctrl+Shift+O to open containing folder in Explorer.
; Ctrl+Shift+E在资源管理器中定位当前编辑文件.
^+o::
^+e::
editor_open_folder() {
WinGetTitle, path, A
if RegExMatch(path, "\*?\K(.*)\\[^\\]+(?= [-*] )", path)
{
;~ MsgBox %path%
;~ MsgBox %path1%
if (FileExist(path) && A_ThisHotkey = "^+e")
Run explorer.exe /select`,"%path%"
else
Run explorer.exe "%path1%"
}
}
#z::editor_open_folder()
[FUNC]在编辑器中按热键打开文件所在目录
最新推荐文章于 2022-10-28 11:57:54 发布