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

List stylesheet variables

by MaciekBaron ALL

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

Details

  • 2014.04.07.11.12.15
  • github.​com
  • github.​com
  • 10 years ago
  • 2 hours ago
  • 11 years ago

Installs

  • Total 8K
  • Win 5K
  • Mac 3K
  • Linux 724
Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12
Windows 0 0 0 0 0 0 0 0 1 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 1 0 0 0 0
Mac 0 0 0 0 0 0 0 1 1 0 0 1 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 1
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 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 @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.)

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.