3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

SublimeText3でSimpleRailsNavigatorを追加する方法

3
Last updated at Posted at 2015-01-04

noklesta/SublimeRailsNav
https://github.com/noklesta/SublimeRailsNav/
Railsのプロジェクト内のModel, Controller, View, Helperなどをリスト表示してくれるパッケージです。結構便利そう。

SublimeText3だとPackageControlで追加することができないので、以下の通り、追加してみました。

bash
# クローンする
$ git clone http://github.com/noklesta/SublimeRailsNav

# クローンしたディレクトリへ移動
$ cd SublimeRailsNav

# 対象のブランチへチェックアウト
$ git checkout ST3

# Packagesのディレクトリに移動
$ mv SublimeRailsNav ~/Library/Application\ Support/Sublime\ Text\ 3/Packages

キーバインドはこちらで設定
Preferences -> PackageSettings -> Key Bindings - User

Default(OSX).sublime-keymap
[
  { "keys": ["super+ctrl+m"], "command": "list_rails_models" },
  { "keys": ["super+ctrl+c"], "command": "list_rails_controllers" },
  { "keys": ["super+ctrl+v"], "command": "list_rails_views" },
  { "keys": ["super+ctrl+h"], "command": "list_rails_helpers" },
  { "keys": ["super+ctrl+x"], "command": "list_rails_fixtures" },
  { "keys": ["super+ctrl+t"], "command": "list_rails_tests" },
  { "keys": ["super+ctrl+i"], "command": "list_rails_javascripts" },
  { "keys": ["super+ctrl+y"], "command": "list_rails_stylesheets" }
]
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?