如何在 Textmate 中获取 Emacs 绑定?

发布于 2024-09-09 08:27:10 字数 326 浏览 0 评论 0原文

Textmate: Power Editing for the Mac 中,作者说 Textmate 有 Emacs键绑定。当我尝试在 Textmate 中使用它们时,有些可以工作,有些则不起作用。例如,Cn 将光标向下移动一行,但 Cp 运行一些命令,给我提供奇怪的输出(它不会向上移动一行)。 Textmate 中有没有办法查找键绑定的作用(如 Emacs 的帮助命令)?为什么某些 Emacs 键绑定会被其他命令覆盖?如何修复此问题?

In Textmate: Power Editing for the Mac, the author says that Textmate has Emacs key bindings. When I try to use them in Textmate some work and some don't work. For example C-n moves the cursor down one line, but C-p runs some command that gives me weird output (it doesn't move up one line). Is there a way in Textmate to lookup what a key binding does (like Emacs' help command)? Why are some Emacs key bindings being overridden by other commands and how do I fix this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

神回复 2024-09-16 08:27:10

有一些 Emacs 键绑定可用。 ^+A^+E^+K< /kbd>、^+Y 等,与在 Emacs 中一样工作(事实上,其中大多数都可以在任何 Cocoa 中工作)应用程序)。您可以在此处查看更完整的列表(向下滚动大约页面下方的⅔)。但是,活动捆绑包可能会干扰其中一些绑定,在这种情况下,您可以通过转到“捆绑包”>“捆绑包”来编辑捆绑包。捆绑包编辑器。此外,并非所有 Emacs 绑定都有效。

There are some Emacs key bindings available. ^+A, ^+E, ^+K, ^+Y, etc., work as they do in Emacs (in fact, most of those will work in any Cocoa app). You can see a more complete list here (scroll down about ⅔ of the way down the page). However, active bundles may interfere with some of the these bindings, in which case you can edit the bundle by going to Bundles > Bundle Editor. Also, not all Emacs bindings work.

时光是把杀猪刀 2024-09-16 08:27:10

试试这个 https://github.com/defunkt/textmate.el emacs 的 textmate-mode 。

Try this https://github.com/defunkt/textmate.el a textmate-mode for emacs.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文