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

List LESS Variables

by MaciekBaron ST2/ST3

Simple Sublime 2/3 plugin for listing LESS variables used in a file and inserting them into the file

Details

  • 2013.07.02.09.02.55
  • github.​com
  • github.​com
  • 5 years ago
  • 47 minutes ago
  • 5 years ago

Installs

  • Total 17K
  • Win 11K
  • OS X 5K
  • Linux 2K
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 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31
Windows 3 1 1 5 5 0 5 2 3 5 5 0 1 5 3 5 4 5 6 4 4 0 5 3 2 4 6 1 2 2 1 3 3 8 4 4 7 4 7 7 6 7 6 3 0 6
OS X 0 0 0 0 2 0 1 2 0 1 1 0 0 1 0 1 0 3 0 1 0 3 1 1 1 1 1 2 1 2 2 0 1 1 2 1 0 0 2 3 1 4 0 1 1 0
Linux 0 0 0 0 1 1 0 1 0 0 1 0 0 1 0 0 0 1 0 0 1 0 1 0 3 0 0 0 0 0 0 1 0 0 0 0 0 2 0 0 0 2 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

This plugin has been superseeded by the universal plugin

List LESS variables

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

(Looking for a SASS, Stylus version? Check out the beta version of the universal plugin)

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 LESS variables used in your current file allowing you to insert a selected one directly into your code. It also supports @imported LESS 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

You can use the Sublime Package Manager to install this plugin. Alternatively, clone the repo into your Packages folder.

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 LESS files

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