TextMate ファイルパスが効くGoToFile Bundle

従来の⌘T(Command + T)Go to Fileの問題:パスが効かない

⌘TはTextMateで速やかにファイルを開ける機能ですが、例えばこんなファイルがあるとします。 -blogs/index.html.erb -posts/index.html.erb -categories/index.html.erb -tags/index.html.erb -users/index.html.erb

で⌘Tで”blogs/index”を叩くと何も表示されない、つまりパスが効かないのが一番の問題です。それを解消するのがgotofile.tmbundle

インストール

cd ~/Library/Application\ Support/TextMate/Bundles/ git clone git://github.com/stevenchanin/gotofile.tmbundle.git GoToFile.tmbundle で、textmateを再起動

使い方

⇧⌘K ( Command + Shift + K )で新しいGo To Fileダイアログを開いて”ar/in”を叩くことでarticles/index.htmlが選択されます! <a href=”https://images.kinopyo.com/wp-content/uploads/2011/08/Go-To-File-Textmate-Bundle.png)><img class=”alignnone size-medium wp-image-2126” title=”Go To File Textmate Bundle” src=”https://images.kinopyo.com/wp-content/uploads/2011/08/Go-To-File-Textmate-Bundle-300x273.png) alt=”” width=”300” height=”273” /></a>

他にもspaceキーでQuickLookモードでファイルを見たり、⌥(option)キーでデフォルトのアプリでファイルを開いたり、⇧(shift)キーでフォーカスに選択したファイルのパスを入力することができます。

参考

http://how-i-work.com/workbenches/2-keyboard-based-no-mouse-rails-development-with-textmate

Qihuan Piao

朴 起煥

中国育ち、東京暮らし。読んだり書いたり、時には考え込んだり。親になってから5年ほど、ブログ(とその他もろもろ)は完全停止していたけど、気づけばまた書いている。ここにはそんな寄り道の記録を書いています。結論が出ない話も多いけど、それもまたよし。

その頃、英語で書いたもの

Remembering Steve Jobs

2011年10月6日