[TxMt] Textmate widget & bundle

Allan Odgaard throw-away-1 at macromates.com
Sun Oct 22 13:45:35 UTC 2006


On 22. Oct 2006, at 14:18, Andy Herbert wrote:

> I've been trying to come up with a solution to creating shell  
> scripts within Textmate and creating a widget on the Dashboard  
> layer to call the script with references to any files or URLs  
> passed to it, and I have eventually come up with a Textmate widget  
> & bundle to do all this.
>
> I've created a screencast (sorry - no audio) to show the various  
> features of the bundle and the widget, and it can be found at: [...]

This indeed looks pretty awesome!

A few things I noticed when watching the screencast:

   * Just double click the bundle or drag it onto the TM icon, then  
it will go into the right location *and* TM will load it (so you  
don’t need to reload bundles after install)
   * I do that !env⇥ a lot myself in shell and have to fix shell →  
bash, so now I made the snippet special case that :)
   * Probably when creating a widget from within TextMate, it should  
prompt the user for a name, since you always want to provide one (and  
if not, it’s just return with the default), which is less work than  
that click the ‘i’ + edit + click done.
   * Menu titles should be Capitalized. So Create Widget From  
Document (yeah, I would shorten the action descriptions as well)
   * Widget as a bundle name is maybe a tad ambiguous -- how about  
Widget Factory or some such.

Can I link to your screencast from my blog?






More information about the textmate mailing list