Sublime Forum

Variables in command menus

#1

Do plugin menus have the ability to take environment variables? I see the open_dir command does, but is this exposed to plugin writer?

eg. Can I do something like this: "args": {"dir": "$file_path", "file": "$file_name"}?

I’d really like to be able to accept the file name, if possible. As it stands, in order to mimic this somewhat, I have two layers of text commands; the first simply calls the second, passing the file name as argument. Ultimately, I’d like to be able to do away with this abstraction.

0 Likes

#2

I’m not sure if my question is unclear, if no one has any ideas on how this can be done.

Thoughts? Anyone?

0 Likes