Home Download Buy Blog Forum Support

TextMate Snippets - Completion not working

Re: TextMate Snippets - Completion not working

Postby aunderwo on Thu Sep 08, 2011 9:47 am

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>
aunderwo
 
Posts: 7
Joined: Thu Sep 08, 2011 9:40 am

Previous

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], mwb1100 and 26 guests