List stylesheet variables
Sublime Text plugin for listing and inserting stylesheet preprocessor variables (LESS, SASS, Stylus)
Details
Installs
- Total 8K
- Win 5K
- Mac 3K
- Linux 727
Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
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 | 1 | 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
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 @import
ed 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.)
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 filesreadAllViews
(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.