[TxMt Plugins] Dialog API improvements

Allan Odgaard throw-away-1 at macromates.com
Fri Sep 21 16:57:02 UTC 2007

On 20/09/2007, at 18:34, Chris Thomas wrote:

> [...]
> Reverse the order and it can be done without forcing other commands  
> to conform: "tm_dialog (window|menu) create". That's probably the  
> most flexible solution.
> But, it might be better to use the former approach with different  
> verbs: "show" for synchronous and "create" for asynchronous.  
> "tm_dialog show menu", for example, makes perfect sense and allows  
> the "create" verb to be added later if there's ever a reason to  
> manipulate a menu asynchronously.
> The implementation in the Dialog plugin would use the second  
> argument as a key for the command subclass, and then dispatch the  
> command line to the subclass. This has the side effect of possibly  
> slightly simplifying the implementation of "tm_dialog help <noun>".

I like this a lot, I’ll write some code to support this probably later  

More information about the textmate-plugins mailing list