Make environment variables available to menus

notanumber 8 лет назад 0
I posted this on the Sublime Text forums here (http://www.sublimetext.com/forum/viewtopic.php?f=6&t=1980) but didn't get a reply.

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.

Сервис поддержки клиентов работает на платформе UserEcho