Everything是一个Windows上的文件搜索引擎,支持按文件名和目录名搜索文件和目录。app
我使用的Everything版本为:Version 1.3.4.686 (x86)函数
在搜索结果中单击鼠标右键,会弹出上下文菜单(Context Menu),本文主要总结了这些按钮的可见性和触发事件的配置。this
上下文菜单中,最上面的几个按钮能够经过下面的方法配置:搜索引擎
一、在Tools菜单下面找到Options
code
二、找到General下的ContextMenu,就能够看到上下文菜单的配置界面了
索引
配置界面中,最多能够配置7个菜单项,除前两个菜单项(打开目录、打开文件)必定展现外,其余的菜单项均可以配置下面属性:事件
一、是否显示在菜单中ip
Show this item:显示在上下文菜单中ci
Show this item when the Shift key is down:在按Shift键同时右键打开的上下文菜单中显示资源
Do not show this item:不显示在上下文菜单中
二、单击该菜单项时触发的事件
Command后面的文本输入框中,支持以下函数和转义字符:
函数1:$exec(application parameters),执行应用程序,能够带参
函数2:$parent(filename),返回指定文件或目录的父目录
函数3:$pathpart(filename),返回指定文件或目录的父目录
函数4:$namepart(filename),返回指定文件或目录的名称
还有4个转义字符
转义字符1:%1,当前选中文件的文件名
转义字符2:$$,同$
转义字符3:$(,同(
转义字符4:$),同)
下面逐个介绍下各个菜单项及命令
一、Open Folders(打开目录)
这一菜单项必定会菜单中,点击后执行命令:$exec("%1")
二、Open Files(打开文件)
这一菜单项必定会菜单中,点击后执行命令:$exec("%1")
三、Open Path(打开路径)
点击后执行命令为:$exec("%SystemRoot%\explorer.exe" /select,"%1")
四、Explore
点击后执行命令为:$exec("%SystemRoot%\explorer.exe" /n,/e,"%1")
五、Explore Path
点击后执行命令为:$exec("%SystemRoot%\explorer.exe" /n,/e,/select,"%1")
六、Copy Path to Chipboard
复制当前选中文件所在目录的路径到剪贴板,如:E:\war3\war3\10101071
七、Copy Full Name to Chipboard:
复制当前选中文件的完整路径到剪贴板,如:E:\war3\war3\10101071\Warcraft III.exe
其中,菜单项1-5执行的命令是能够手工设置的,其中涉及到用资源管理器打开目录的功能,都使用到了explorer.exe,explorer.exe的参数能够从下面的页面查看到:
https://support.microsoft.com/en-us/kb/152457
涉及Explorer.exe参数的介绍文字以下:
Explorer [/n] [/e] [(,)/root,<object>] [/select,<object>] /n Opens a new single-pane window for the default selection. This is usually the root of the drive Windows is installed on. If the window is already open, a duplicate opens. /e Opens Windows Explorer in its default view. /root,<object> Opens a window view of the specified object. /select,<object> Opens a window view with the specified folder, file or application selected. Examples: Example 1: Explorer /select,C:\TestDir\TestApp.exe Opens a window view with TestApp selected. Example 2: Explorer /e,/root,C:\TestDir\TestApp.exe This opens Explorer with C: expanded and TestApp selected. Example 3: Explorer /root,\\TestSvr\TestShare Opens a window view of the specified share. Example 4: Explorer /root,\\TestSvr\TestShare,select,TestApp.exe Opens a window view of the specified share with TestApp selected.END