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

Goto-CSS-Declaration

by Razumenko Maksim ST2/ST3 Trending

Goto CSS declaration in an open *.css file

Details

  • 2013.12.15.20.05.24
  • github.​com
  • github.​com
  • 2 years ago
  • 24 minutes ago
  • 4 years ago

Installs

  • Total 30K
  • Win 18K
  • OS X 10K
  • Linux 2K
Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22
Windows 10 31 38 47 88 55 65 41 31 20 36 46 57 40 43 28 22 31 41 37 37 57 31 45 52 59 54 52 62 13 43 19 26 29 30 33 15 16 19 21 29 25 14 15 12 19
OS X 2 9 6 11 18 26 18 16 7 9 8 13 16 11 19 9 8 7 11 17 17 15 12 13 12 8 18 11 19 9 11 6 12 11 11 17 8 16 11 10 14 17 12 4 7 13
Linux 0 1 5 1 3 7 3 3 4 5 1 3 3 3 2 2 8 4 2 2 6 6 4 7 9 2 6 5 3 2 0 3 0 2 2 3 0 1 0 0 3 1 1 0 1 2

Readme

Source
raw.​githubusercontent.​com

Goto-CSS-Declaration

v0.3 - 99% refactoring

v0.2.1 - Fix empty view.file_name


Goto CSS declaration in an open *.css (.less, .sass, .other) file from other file (*.html, *.js, *.other_extantion)

Forum Thread http://www.sublimetext.com/forum/viewtopic.php?f=5&t=4397

Goto-CSS-Declaration

Example

html:

<div id="box" class="box"></div>
                      ^
                      |-cursor

js:

$(".box").click(...);
     ^
     |-cursor

Pressing the key super+right or super+left go to the first CSS declaration of box (.class or #id => .box or #box), in this example the id #box

#box .box-shadow {
    background: url(../img/box.jpg);
    }
#box-shadow .box-shadow-1 {
    box-shadow: 0 0 5px #ff0;
    }
    .box__inner {
        box-shadow: 0 0 5px #f00;
        }

and if then press (in CSS file) super+right goes to the next CSS declaration of box, in this example the class .box-shadow, and next => #box-shadow, and next => .box-shadow-1, and next => .box__inner

also you can press (in CSS file) super+left and goes to the previous CSS declaration of box.

goto_css_declaration.sublime-settings

{
    "css_files": [".css", ".sass", ".less"]
}

Default (Linux).sublime-keymap

super + right
super + left

Default (Windows).sublime-keymap

super + .
super + ,

Copyright

Copyright © 2011 Razumenko Maksim razumenko.maksim@gmail.com

MIT License, see http://opensource.org/licenses/MIT