Home Download Buy Blog Forum Support

A possible bug with snippets?

A possible bug with snippets?

Postby indiver on Tue Mar 08, 2011 9:30 am

I have a snippet that looks like this. I've taken it from a TextMate snippet.

The first field, 'data' is the first block, and all the rest (starting from $3 onwards) form a second block, so that once you tab after filling up the value for 'data', it goes to the whole block for $3{...}.

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>renderWith(${1:data="$2"}${3:${4:, controller="$5"}${6:, action="$7"}${8:, template="$9"}${10:, layout="$11"}${12:, cache="$13"}${14:, returnAs="$15"}${16:, hideDebugInformation="$17"}})$0</string>
   <key>name</key>
   <string>renderWth</string>
   <key>scope</key>
   <string>text.html.cfm</string>
   <key>tabTrigger</key>
   <string>renderwith</string>
   <key>uuid</key>
   <string>9Z92ED11-9277-3FA8-4D425D938B31D3ZC</string>
</dict>
</plist>


I have a little issue, which I think is a bug.

Once I insert the snippet using renderwith[tab], fill in the value for 'data', and tab (which selects all the optional attributes), and press delete to delete all of them at once, the status bar at the bottom says, Field 3 of 18.

Now what happens after this is that you have to press tab many 15 times (and each time the status bar at the bottom increments by one), and once it reaches Field 18 of 18, it actual breaks out of the snippets and starts inserting the tag.

Hope that makes sense?

Please let me know if I more information help? I can try and video it.
indiver
 
Posts: 30
Joined: Fri Mar 04, 2011 5:40 am
Location: Auckland, New Zealand

Re: A possible bug with snippets?

Postby indiver on Tue Mar 08, 2011 5:36 pm

On thing I found was that once one deletes the ${3...} portion, one has to press escape. That seems to escape out of the fields.
indiver
 
Posts: 30
Joined: Fri Mar 04, 2011 5:40 am
Location: Auckland, New Zealand


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 18 guests

cron