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

Find variables in opened files #1

Closed pafnuty closed 11 years ago

pafnuty commented 11 years ago

Hello! Very nice and userfull plugin! Is it possible to add search variables in the open files, and not only in the current? The image shows the problem. 01 02 in the file template_styles.less only @import lines

MaciekBaron commented 11 years ago

Hi pafnuty!

I'm glad you like the plugin

I've added that feature for you. In the settings file change readAllViews to true (it's disabled by default). Note that the plugin will display variables from all open views, but will not attempt to load them recursively (as in, you will still see @variable as @red). I can try improving that later.

Also, currently it will not attempt to also check imported files from other opened views. If this needed, I can add another setting for that.

Let me know if there are any issues regarding this.