SublimeText / PackageDev

Tools to ease the creation of snippets, syntax definitions, etc. for Sublime Text.
MIT License
436 stars 83 forks source link

[Question] any plans to add support for .sublime-options file #208

Closed thecodechef closed 5 years ago

thecodechef commented 5 years ago

Wondering about Sublime Options file?

I was looking at the Unofficial docs recently and came across something I've never seen before. A Sublime Options file to give sublime-text custom env variables and I was wondering if this is an actually a thing and if it is then are planning to add support for in package-dev which by the way kinda like the .tm_properties file

And another Thing?

when i was looking at the TextMate 2.0 Documentation I came across ${1|choice 1,...,choice 2|} which gives snippets a multiple choice syntax that i would love to have in sublime text so my second question is any plans to add this to ether sublime-text-3 or package-dev

@wbond

FichteFoll commented 5 years ago

Sublime Options file aren't a thing that exist. The unofficial docs are wrong about that. Maybe they were a thing in ST1 days but they haven't existed ever since I started using ST many years ago.

The mentioned feature still exists, however, although under the name of .tmPreferences and we refer to those as metadata (because they don't have an official name). See http://docs.sublimetext.info/en/latest/reference/metadata.html#shell-variables-child-of-settings.

thecodechef commented 5 years ago

ok thank you @FichteFoll for being quick to answer my first question, but I would also like to have an answer to my second question as well

FichteFoll commented 5 years ago

I don't see how I could answer the second question. I'm not aware of such a feature in ST and am in no position to add it. If it is added, PackageDev will certainly be updated to support this, however.