Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Simple Sublime 2/3 plugin for listing SASS variables used in a file and inserting them into the file
Python
Branch: master
Pull request Compare This branch is 7 commits ahead, 5 commits behind MaciekBaron:master.

Merge branch 'master' of https://github.com/mrmartineau/sublime-list-…

…sass-vars

* 'master' of https://github.com/mrmartineau/sublime-list-sass-vars:
  fix screenshot and add plea for help
  Give a little more info about this fork.
latest commit f198402800
@mrmartineau authored

README.md

List SASS variables

Please note

This fork does work, but only for .scss files and you will need to have all files containing variables opened because it cannot search imported files yet.

If you think you can help, please help try to improve this.

Improvements needed:

  1. Support for imported files
  2. Support for .sass files

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

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 SASS variables used in your current file allowing you to insert a selected one directly into your code. It also supports `@imported SASS 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: true) - decides whether the plugin should attempt to read all opened SASS files

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

Something went wrong with that request. Please try again.