TextMate Footnotes

苏彦君
2023-12-01
介绍一个textmate bundle 

keypad ‘enter’: Intelligent Go To File

只能文件导航,这个键不知道在键盘上怎么按出来..好晕.

cmd+opt+alt+p(选定内容) 为选定内容创建局部模板

This shortcut takes a selection, asks for a name and creates a partial. Not only that, but it creates the <%= render :partial => “whatever”%> method call to the partial that is created.

command-option-p (without selection): Inline Partial Edit Mode

This shortcut is flat out amazing. Simply hit command-option-p and all your partial calls are replaced with the actual code from the partial. Make your changes, hit command-option-p again, and the render partial method call is put back in its place and the partial is saved with the changes. I dinked around with it abit and definitely got the geek snorts.

command-option-g: Rails Generator

No need to even open up the terminal with this shortcut. It gives you stupid easy access to the Rails script/generate while remaining in Textmate.

ctrl-option-command-\: Install a Bundled Plugin

This automatically installs a plugin to your current project. Currently there are only two plugins bundled with it, but I can imagine it would be easy to add your own. I really like this feature.

Snippets

Not only does the bundle come with all the above cool shortcuts, but it also has several snippets which are helpful for migration. You can read all about these in the features once you download the bundle but I wanted to at least mention it.

Plugins

The bundle also comes with two plugins. One, textmate_footnotes: Clickable Web Pages and Backtrace, does two really cool things. First, it makes the line number and file name error messages clickable. Upon clicking, it opens up the file in Textmate. If you have done much debugging, this is really handy. The second feature is also pretty cool. It adds links to the bottom of the page when in development mode. These links open up the exact controller or view that rendered the page. Nice.

Final Thoughts

Have you downloaded it yet? I’m serious, this thing is awesome. Duane has been posting updates to it like crazy so I look forward to some really cool features in the coming weeks.

这个bundle的下载地址:
[url]http://blog.inquirylabs.com/2006/02/21/syncpeople-on-rails-09-wow-what-a-weekend/[/url]

可以从这个bundle出发安装一个textmate footnotes :

ctrl+cmd+alt+\
安装textmate footnotes
可以在调试出错的track trace列出的文件链接到textmate中打开,另外在页面调试中,在下方会添加一个TextMate Footnotes:  Controller |  View

这样很容易实现页面调试与代码之间的导航




本文转自 fsjoy1983 51CTO博客,原文链接:http://blog.51cto.com/fsjoy/113454,如需转载请自行联系原作者
 类似资料:

相关阅读

相关文章

相关问答