Notepad ++中与参数相关的宏,用于搜索功能

时间:2018-06-26 11:19:53

标签: python plugins notepad++ shortcut

是否有可能在notepad ++中记录/定义依赖于当前标记单词的宏? 我的目标是创建快捷方式,使我可以在不同文件夹中搜索某些参数,而不必始终在搜索菜单中选择该文件夹。但是总是为我在示例中选择的单词指定录制的宏。 是否可以在我的shortcuts.xml文件中包含“当前单词”表达式或某些内容来替换示例单词?

<Macro name="param_search" Ctrl="no" Alt="no" Shift="no" Key="0">
            <Action type="0" message="2308" wParam="0" lParam="0" sParam="" />
            <Action type="0" message="2442" wParam="0" lParam="0" sParam="" />
            <Action type="0" message="2178" wParam="0" lParam="0" sParam="" />
            <Action type="3" message="1700" wParam="0" lParam="0" sParam="" />
            <Action type="3" message="1601" wParam="0" lParam="0" sParam="exampleWord" />
            <Action type="3" message="1625" wParam="0" lParam="0" sParam="" />
            <Action type="3" message="1653" wParam="0" lParam="0" sParam="D:\bla\blabla\" />
            <Action type="3" message="1652" wParam="0" lParam="0" sParam="*.*" />
            <Action type="3" message="1702" wParam="0" lParam="32" sParam="" />
            <Action type="3" message="1701" wParam="0" lParam="1656" sParam="" />
        </Macro>

如果这不可能,那么可以通过python脚本完成吗?

0 个答案:

没有答案