ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Rails​Go​To​Sass

by xijo ALL

Sublime Text 3 package to navigate to sass files inside of your rails project

Details

Installs

  • Total 851
  • Win 374
  • Mac 259
  • Linux 218
Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Rails Go to Sass

Based on https://github.com/sporto/rails_go_to_spec

From a *.html.slim, *.html.erb, *.html.haml file this plugin will open the corresponding sass partial. E.g.:

/app/views/admin/pages/show.html.slim -> /app/assets/stylesheets/admin/pages/_show.sass
/app/views/admin/pages/_foo.html.haml -> /app/assets/stylesheets/admin/pages/_foo.sass

From a *.sass file it will attempt to find a matching view template or partial.

/app/assets/stylesheets/admin/pages/_show.sass -> /app/views/admin/pages/show.html.slim
                                                  /app/views/admin/pages/_show.html.slim
                                                  /app/views/admin/pages/show.html.haml
                                                  /app/views/admin/pages/_show.html.haml
                                                  /app/views/admin/pages/show.html.erb
                                                  /app/views/admin/pages/_show.html.erb

Installation

Using Sublime Package Control http://wbond.net/sublime_packages/package_control

Install rails_go_to_sass

Usage

  • Run from menu > Goto > Rails Go to Sass
  • Default key binding is command + shift + u
  • Or run from command palette 'Rails Go to Sass'