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

List stylesheet variables

by MaciekBaron ST2/ST3

Sublime Text plugin for listing and inserting stylesheet preprocessor variables (LESS, SASS, Stylus)

Details

  • 2014.04.07.11.12.15
  • github.​com
  • github.​com
  • 4 years ago
  • 31 minutes ago
  • 4 years ago

Installs

  • Total 6K
  • Win 3K
  • OS X 2K
  • Linux 528
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 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5
Windows 0 4 3 2 6 1 2 4 5 2 3 3 2 0 3 0 4 3 6 3 1 1 3 2 3 4 2 1 1 1 5 4 2 1 3 5 3 2 2 3 2 3 0 2 5 3
OS X 1 2 1 5 3 0 1 4 1 0 1 0 3 1 1 3 1 1 1 0 0 1 2 1 4 0 1 1 1 1 2 1 2 0 0 2 0 0 0 1 0 0 0 0 3 1
Linux 1 0 2 1 0 0 0 0 4 0 1 0 0 0 1 4 0 0 0 0 0 1 0 1 0 1 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 0

Readme

Source
raw.​githubusercontent.​com

List stylesheet variables

Simple Sublime 2/3 plugin for listing stylesheet preprocessor variables used in a file.

Supported preprocessors: - LESS - SASS/SCSS (+ eRuby .erb support) - Stylus

The default hotkey is Ctrl+Alt+L (or Ctrl+Shift +L on Linux to avoid conflicts with the lock screen hotkey).

It displays a list of variables used in your current file allowing you to insert a selected one directly into your code. It also supports @imported files so you can use variables defined in external files. This can be disabled in settings.

Note that the plugin automatically ignores anything which looks like a vendor prefixed statement (e.g. @-webkit-keyframes) and reserved words (e.g. @media, @import etc.)

Screenshot

Please note that the plugin currently does not understand variable scope and therefore will display all the occurances of a variable.

Installation

The plugin can be installed using the popular Sublime Package Control plugin.

Alternatively you can execute the following command in your Sublime Packages folder: git clone git://github.com/MaciekBaron/sublime-list-stylesheet-vars.git List\ Stylesheet\ Variables

Configuration

The settings file has currently two options:

  • readImported (default: true) - decides whether the plugin should attempt to read imported files
  • readAllViews (default: false) - decides whether the plugin should attempt to read all opened files

Currently if the plugin checks all opened files, it will only check for imported files in the currently selected file.

License

Copyright © 2013 Maciej Baron

Licensed under the Apache License, Version 2.0.