Textmate 中最常用的快捷键不起作用?

发布于 2024-09-17 10:31:43 字数 619 浏览 7 评论 0原文

使用 + + 跳转到代码行开头或结尾的快捷方式不起作用。我刚刚听到 Mac OS X 系统蜂鸣声。

我相信这个快捷方式对于 Max OS X 平台是通用的,而不是专门针对 TextMate,并且它并且它确实可以在其他地方(TextEdit、StackOverflow 等)工作。

为什么 TextMate 会与之冲突并且不起作用?

确实可以在我的另一台 Mac 上的 TextMate 中运行。我可以在某处更改配置吗?我尝试重新安装 TextMate。

更新

我使用的是 Textmate 1.8,并升级到 1.9 。

我在发行说明中注意到这一点:

[已修复]为命令+箭头添加本地键绑定(因为 Snow Leopard 中没有默认值)- 票证 0FDE7076。

现在,当我执行 + 时,它会关闭应用程序,并转到查找器也正在使用的任何应用程序。

当我执行 + 时,它会按预期工作。

The shortcut for jumping to the beginning or end of a line of code with + or + does not work. I just get a MaC OS X system beep.

I believe this shortcut is universal to the Max OS X platform, and not specifically TextMate, and it and it does work everywhere else (TextEdit, StackOverflow, etc.).

Why would TextMate conflict with it, and not work?

It does work on my other Mac in TextMate. Is there a configuration I can change somewhere? I tried reinstalling TextMate.

Update

I was on Textmate 1.8, and upgraded to 1.9 .

I noticed this in the Release notes :

[FIXED] Add local key bindings for command + arrows (as there are no defaults in Snow Leopard) - ticket 0FDE7076.

Now when I do + It closes the application, and goes to whatever app is also being used by finder.

When I do + it works as expected.

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

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

发布评论

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

评论(5

北方的巷 2024-09-24 10:31:43

也许您有一个捆绑项目会造成干扰? -箭头 在 TextMate 中确实按预期工作。

Maybe you have a bundle item that's interfering? -Arrow does work as expected in TextMate.

何以心动 2024-09-24 10:31:43

我没有听说过这个捷径,也不知道为什么它不起作用。

我使用适用于大多数 Mac 应用程序的 emacs 组合:Ctrl-A 跳转到行首,Ctrl- E 跳转到末尾。

Ctrl-D(向前删除)、Ctrl-L(居中当前行)和 Ctrl< /kbd>-T(转置两个字符)也很方便。

I haven't heard of that shortcut, and no idea why it's not working.

I use the emacs combos that work in most Mac apps: Ctrl-A to jump to the beginning of a line and Ctrl-E to jump to the end.

Ctrl-D (forward delete), Ctrl-L (center current line) and Ctrl-T (transpose two chars) are also handy.

九命猫 2024-09-24 10:31:43

我终于找到了这个!事实证明,textmate 不适用于 Snow Leopard 键绑定。

http://ticket.macromates.com/show?ticket_id=0FDE7076

奇怪吧?此链接中包含的文件应该可以解决该问题。

I finally found this! Turns out textmate doesn't work with Snow Leopard key bindings.

http://ticket.macromates.com/show?ticket_id=0FDE7076

Strange right? The files included in this link should address the problem.

垂暮老矣 2024-09-24 10:31:43

与许多程序不同,快捷键不是在首选项中定义的,而是在应用程序启动时加载的捆绑包中定义的。

TextMate 有很多地方可以查找捆绑包和附加组件,因此您可能需要四处寻找才能找到这两个应用程序之间的差异。一般来说,您应该查看 ~/Library/Application Support/TextMate/Library/Application Support/TextMate 以查看设置的内容。

您应该能够将工作包集的内容复制到非工作计算机上以解决问题。请务必先备份该目录,以防万一您错误地使其变得更糟。

Unlike many programs, short-cut keys are not defined in the preferences but it in the bundles that are loaded when the application starts.

TextMate has a bunch of places it looks for bundles and add-ons so you might have to hunt around to find the differences between the two apps. In general terms you should look in ~/Library/Application Support/TextMate and /Library/Application Support/TextMate to see what is set.

You should be able to copy the contents of the working bundle set over to the non-working computer to resolve the problem. Be sure to make a back-up of that directory first just in case you make it even worse by mistake.

瑾兮 2024-09-24 10:31:43

TextMate 的主窗口文本框并未使用 Cocoa,但它确实实现了大多数 Cocoa 快捷键,包括用于跳转到行尾的 +

正如所讨论的,您很可能有一个绑定该命令的包。然而,因为它是 TextMate,而且 TextMate 很棒,所以有一个简单直接的方法可以找出是什么捆绑项。

Bundles->Select Bundle Item...,然后单击放大镜并切换到 Key Equivalent。输入 + ,它将显示您获得的捆绑包项目。这取决于上下文,因此请确保您的光标位于出现问题的范围内。

如果您没有看到捆绑包项目出现,则意味着您计算机上的其他程序正在使用 +

TextMate doesn't use Cocoa for its main window text box, but it does implement most Cocoa shortcuts, including + for jumping to the end of the line.

As discussed, you most likely have a bundle that's binding that command. However, because it's TextMate, and TextMate is awesome, there is a simple and direct method to find out what bundle item that is.

Bundles->Select Bundle Item..., then click the magnifying glass and switch to Key Equivalent. Type + and it will show you what bundle item you're getting. This is context dependent, so make sure your cursor is in the scope where you're having problems.

If you don't see a bundle item show up, then it means some other program on your computer is eating + .

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