[TxMt] Using forms in the html output window

Allan Odgaard throw-away-1 at macromates.com
Fri Nov 18 13:47:15 UTC 2005


On 18/11/2005, at 14:37, Chris Jenkins wrote:

> Does anyone know if it is possible to use forms in the html output  
> window when running a command?

It should be. You'd need to have the FORM post to a javascript, and  
that script can run normal shell commands via the TextMate.system()  
method, which mimic that of Dashboard: http://developer.apple.com/ 
documentation/AppleApplications/Conceptual/Dashboard_Tutorial/Scripts/ 
chapter_12_section_1.html

The Ruby -> Documentation for Word uses TextMate.system() to call  
rdoc to get further information (when user clicks a link).

On the bundle repository, there's also Clock [1] in the experimental  
bundle which starts/stops a process from the HTML output.

In addition to TextMate.system you can also control the progress  
indicator in the upper right corner using: TextMate.isBusy = true/false.

[1] http://anon:anon@macromates.com/svn/Bundles/trunk/Bundles/ 
Experimental.tmbundle/Commands/Clock.plist




More information about the textmate mailing list