MMackus wrote:Thank you for your replies.
I was under the impression textmate snipplets were drop in functionality for Sublime - this is one of the main reasons I'm interesting in purchasing sublime. Perhaps I should look at something like E that has actual support for textmate snippets.
So, from what I understand, it needs to be in the correct scope. Not too big of a deal. Will other snippets work though? Such as PHP, etc?
RE: Github conversion - thats great, but I was hoping they would work out of the box. Thank you for the link though.
What about PHP, Python, and Ruby? I use those all the time...
sublimator wrote:jps wrote:The jquery snippets have a selector of "source.js.jquery", which means they'll only trigger if you use the jquery .tmLanguage file from the same bundly (i.e., if your syntax needs to be set to "jQuery (JavaScript)".
This is the reason why @MrMartineau thought it necessary to convert the snippets to `sublime-snippet` format. I see in the `conversion`they aren't scoped at all.
You just have to make sure you have the correct grammar applied. There's no real need to convert the snippets.
sublimator wrote:Someone mentioned, or showed code the other day that implied, that the <keyEquivalent> field in snippets now works in Sublime. This was never the case in S1. Can anyone confirm this?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>#{${1:$TM_SELECTED_TEXT}}</string>
<key>keyEquivalent</key>
<string>#</string>
<key>name</key>
<string>Embedded Code — #{…}</string>
<key>scope</key>
<string>(string.quoted.double.ruby|string.interpolated.ruby) - string source</string>
<key>uuid</key>
<string>12F6DE4C-6981-4413-8582-C0286D2ED84B</string>
</dict>
</plist>Users browsing this forum: No registered users and 12 guests