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?
I can't get this working. My snippet is as follows which is a direct copy of a TextMate Snippet. This aims for the # key to insert the charcaters #{} around text within a double quotes string. At the moment it does nothing. Any ideas??
- Code: Select all
<?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>