[TxMt] new command: Universal Un/Comment (BBEdit-ish)

Allan Odgaard allan at macromates.com
Tue Dec 21 22:32:26 UTC 2004

On Dec 21, 2004, at 22:51, Chris Thomas wrote:

> It's not clear to me that a sophisticated mode implementation could be 
> based on raw shell script, though. Hard to do polymorphism in shell 
> script.

Version 1.1b1 will approach modes with the syntax choice (i.e. mode) 
dependent lookup of snippets/commands/macros. Everything is still 
accessible, but when using a snippet trigger or snippet/macro/command 
key equivalent, it will favor any snippet/macro/command found in the 
same bundle as the current syntax file.

The snippets/commands/macros menus then only show the contents of the 
'active' bundle and have sub menus for the other bundles:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Untitled 1.pict
Type: image/pict
Size: 45956 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20041221/183e01ce/attachment.pict>
-------------- next part --------------

I personally do favor this over real modes since I do occasionally need 
to use HTML snippets in non-HTML documents or some of my C++ macros in 
a non-C++ context.

More information about the textmate mailing list