[TxMt] Features req: a webkit output window
Allan Odgaard
allan at macromates.com
Sat Dec 4 01:34:04 UTC 2004
On Dec 3, 2004, at 2:41, Dominique Peretti wrote:
> I wish I could format the output of TM's commands in html, and make
> html links able to launch other TextMate commands !
Adding webkit as the output for commands is certainly possible. But I'm
not sure how links should communicate with TextMate.
What I can do is introduce a custom URL scheme, like “txmt://” -- *but*
this would be a global new URL scheme and open to browser exploits
similar to the help:// and telnet:// proof-of-concept exploits half a
year ago.
I'll have to check the webkit documentation for how easy it is to add a
local URL scheme just for the instance I use in TM.
Although having a “global” scheme does have the advantage that e.g. a
wiki could have a special txmt:// link to edit the page in TextMate ;)
> I would also like to be able to use a TextMate webkit window that
> would be called from somewhere else.
Adding AppleScript support to TM is getting closer, so I'll keep that
in mind.
> I wish this window could be an interactive one, in Textmate. Thus I
> could jump directly to the error by clicking a link, etc...
Ah, now I see why you've been requesting the --line for the (fictive)
tm utility (if that was you!?!).
Currently you can make TextMate jump to a file/line using AppleScript,
but the “structure” is binary (it's from the MetroWerks External Editor
IDE) so unfortunately it requires a language that can do this (e.g. C).
I'll have that tool made for b9 (I know I promised it for b8 ;) ).
More information about the textmate
mailing list