I have created a custom TM_CLASS variable I use in snippets to fill in the namespace on a C++ method such as with
file "Packages/C++/Class (C++).tmPreferences":
- Code: Select all
<?xml version="1.0" ?><!DOCTYPE plist PUBLIC '-//Apple Computer//DTD PLIST 1.0//EN' 'http://www.apple.com/DTDs/PropertyList-1.0.dtd'><plist version="1.0">
<string>source.c, source.c++, source.objc, source.objc++</string>
will expand to:
The meta_info is read only however and to change the value of TM_CLASS I need to xmlwrite a "C++/Class (C++).tmPreferences" file with the new class name set for the value of the TM_CLASS entry.
This seams a little wasteful to me. If we had a way of setting the values in the "shellVariables" meta info it would shorten the process.
For me a non-persistent value is fine but I understand for a complete feature you would probably want to save the changes and that complicates things a bit.
Anyway I thought I would bring this feature request up just in case.