TextMate 映射键用于下一个完整的命令 +空格键
我发现了很多关于在 Textmate 中重新映射键绑定的教程和论坛问题,并且在大多数情况下,我知道需要做什么,只要复制 KeyBindings 文件,然后进行所需的更改。更多关于我在这里谈论的内容 http://blog.macromates.com/ 2005/key-bindings-for-switchers/
我有兴趣将 nextComplete 的 esc 键重新映射为 control + 空格键。问题是我很难找到空格键的代码是什么,或者是否支持这一点。
我主要在 eclipes 中进行动作脚本开发,代码提示对话是由这个组合键触发的,我希望在 Textmate 中也有同样的功能。按 esc 键类似 sux。我以为我会习惯它,但事实是它只会破坏输入其余代码的流程。
我需要一些帮助来弄清楚他的空格键代码是什么。我知道控制键是 ^ 符号。我通过将键绑定更改为 ^s 来测试这一点,并且它重新映射得很好。
I found a lot of tutorials and forum questions around remapping key bindings in Textmate and for the most part I know what needs to be done as far as copy the KeyBindings file and then make the changes needed. More on what I am talking about here http://blog.macromates.com/2005/key-bindings-for-switchers/
I am interested in re-mapping the esc key for nextComplete to control + spacebar. The problem is I am having a hard time finding what the code is for the spacebar or if this is even supported.
I mainly do actionscript development in eclipes and code hinting dialogue is triggered by this key combo and I would like to have the same in Textmate. Hitting the esc key kind of sux. I thought I would get used to it but the fact is that it just kills the flow of typing the rest of your code.
I could use some help figuring out what he code is for the space bar. I know control key is the ^ symbol. I tested this by changing the keybinding to ^s and it remapped just fine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这可以通过 OS X gui 来完成:
系统偏好设置、键盘、单击键盘快捷键选项卡
单击小加号,然后选择应用程序:Textmate.app,菜单标题:下一步完成,键入命令空格(或控制空格),然后单击添加,这应该可以工作。您可能想删除冲突的快捷方式 - 可能是聚光灯?
为了便于将来参考,我使用了 关键代码 查找空间的关键是: \UF20
I think this one can be done with the OS X gui:
System Preferences, Keyboard, Click Keyboard Shortcuts Tab
Click the little Plus, and choose Application: Textmate.app, Menu Title: Next Completion, Type Command Space (or Control Space) and click Add and that should work. You might want to remove conflicting shortcuts - possibly spotlight?
For future reference, I used Key Codes to find the key for space is: \UF20