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

List LESS Variables

by MaciekBaron ALL

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

Details

  • 2019.05.12.21.28.11
  • github.​com
  • github.​com
  • 10 months ago
  • 52 minutes ago
  • 7 years ago

Installs

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