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

List name of file where variable is defined #8

Open bmcminn opened 10 years ago

bmcminn commented 10 years ago

It would be nice to know what file the variable is being defined in. I tend to use contextual variables in the given file context, however some people I work with don't always know what var may be contextual or not.

MaciekBaron commented 10 years ago

I could add is as an optional feature, append it to the variable name, in brackets.

Bear in mind though that I now mostly work on the universal plugin, which can be found here: https://github.com/MaciekBaron/sublime-list-stylesheet-vars

bmcminn commented 10 years ago

I tried looking into the issue myself and made sense of the issue, but completely lost track of everything that was happening once it got into the menu generation stuff.

Something like this format could work well for it I think:

@varname (filename.less)
[variable value]
---
@varname (filename.less)
[variable value]
---
etc...

I hadn't seen that project yet, but I'll def give it a look. If you do integrate it great, but I think I may migrate to the newer plugin, so could be a feature added for that one :) Great work!