[TxMt] Simple bundle question

Jeremy Amos jeremy at igneramos.com
Thu Aug 10 14:54:37 UTC 2006


On Aug 10, 2006, at 8:39 AM, Todd Dominey wrote:

> Ahh...see I *knew* I was missing something obvious. Thanks.
>
> It's a little strange though that some HTML bundles (like control- 
> shift-W) work fine in Plain Text mode, but control-shift-L doesn't.  
> That's what was throwing me off.

you can expand the scope of that command simply by appending a comma  
to the scope selector. This will add a blank scope to the snippet,  
making it available in every scope (with the lowest possible  
specificity, so any other commands / snippets with that binding will  
take precedence, assuming they're in scope.

http://macromates.com/textmate/manual/scope_selectors#scope_selectors

Not exactly certain if the expanded scope on ctl-shift-W is  
intentional or not, but since that behaviour makes sense in a number  
of cases (well, really all the xml-related contexts), I'd be inclined  
to believe it's intentional. If not, it's a serendipitous mistake.



More information about the textmate mailing list