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
  • 1 hour ago
  • 5 years ago

Installs

  • Total 16K
  • Win 10K
  • OS X 5K
  • Linux 2K
Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5
Windows 3 1 6 4 0 11 4 4 1 2 3 2 6 3 3 3 4 4 2 6 5 2 3 2 4 2 2 3 1 5 2 5 4 4 6 2 0 5 7 5 12 7 2 3 6 9
OS X 0 0 1 0 0 1 0 1 0 0 1 1 0 1 0 2 4 3 3 1 3 1 1 0 0 1 0 0 3 4 0 1 1 2 2 1 0 1 1 2 1 1 1 1 0 1
Linux 1 2 0 0 1 0 0 0 0 1 0 2 0 0 0 0 0 1 0 0 0 0 1 0 3 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 0 1

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.