V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  orangeD  ›  全部回复第 12 页 / 共 12 页
回复总数  222
1 ... 3  4  5  6  7  8  9  10  11  12  
2015 年 4 月 12 日
回复了 tanteng 创建的主题 macOS 如何在 Mac 下快速的执行某个路径下的文件
如果有使用karabiner的话,可以把一条命令映射到一个按键上,比如cmd+F9
只需在private.xml里增加配置
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_SHELL_goagent </name>
<url type="shell">
<![CDATA[ python ~/Documents/goagent/local/proxy.py ]]>
</url>
</vkopenurldef>

<item>
<name>Change Cmd + F9 to execute goagent</name>
<identifier>private.cmd_f9</identifier>
<autogen>
__KeyToKey__
KeyCode::F9, ModifierFlag::COMMAND_L,
KeyCode::VK_OPEN_URL_SHELL_goagent,
</autogen>
</item>
多谢
1 ... 3  4  5  6  7  8  9  10  11  12  
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2981 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 06:51 · PVG 14:51 · LAX 23:51 · JFK 02:51
♥ Do have faith in what you're doing.