更改 Sublime Text 2 中 Alt 键的行为

2024-03-31

I want to be able to use the alt key in Sublime Text 2 like I can use it on the command line in iTerm. For example, when I hit alt+f, the cursor moves forward a word, or when I hit alt+b, the cursor moves backward a word.

相反,会发生与插入的键对应的 UTF+8 字符(例如:ƒ or )。在 Mac 上的 iTerm 中,我可以将左侧 alt 行为更改为像 +esc 一样,它似乎可以解决问题。

这可能是一般的 Mac OS X 问题(我在 Web 浏览器中也有同样的问题),也可能是 Sublime Text 2 的特定问题,因此我将不胜感激任何 Mac 或 Sublime Text 2 专业知识。谢谢!


使用后Sublemacs专业版 https://github.com/grundprinzip/sublemacspro几天后,我意识到它对我的喜好来说太过分了,尽管对于经验丰富的 emacs 用户来说可能还不错。

我来自 TextMate,我真正想要的是世界上最好的:主要是 Sublime 快捷方式,Textmate 的 ruby​​ 快捷方式库中缺少一些快捷方式,以及 Textmate 从 emacs 窃取的一些快捷方式。

So, I figured out how to solve the alt+f and alt+b problems:

{ "keys": ["alt+b"], "command": "move", "args": {"by": "subwords", "forward": false} },
{ "keys": ["alt+f"], "command": "move", "args": {"by": "subword_ends", "forward": true} }

如果我发现更多真正有用的,我会把它们发布在这里。另外,如果我找到列出所有可能的“by”字段值的资源,我也会发布该资源。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

更改 Sublime Text 2 中 Alt 键的行为 的相关文章

随机推荐