MaciekBaron / sublime-list-less-vars

Simple Sublime 2/3 plugin for listing LESS variables used in a file and inserting them into the file
14 stars 6 forks source link

Define a root file #6

Open Verhaeg opened 11 years ago

Verhaeg commented 11 years ago

Since LESS allows you to use variables in other files without importing the file where the variable was defined (this file will be imported by the root file) it would be nice if it was possible to define a root file to search for variables and from that file, all the imported file as well.. file architecture is something like this:

variables.less
style.less
-- import variables.less
-- import buttons.less
buttons.less
-- uses variable from variables.less

Thanks

MaciekBaron commented 11 years ago

Hi Verhaeg,

For the time being you can use the readAllViews setting and have variables.less open in another tab (the setting reads variables from all open tabs).

I guess I can add a setting to define the default root file and perhaps a root file for a specific project.

Just so you know, I'm focusing now on the universal plugin and this plugin will be soon deprecated.

Cheers