Awhile back I seem to remember Allen suggesting he could create a TextMate protocol (e.g. txmt://path/to/my/file). I've come to the conclusion that if this was available, I would use it a lot.
Here's one example:
I use Markdown syntax for most of my writing nowadays, but once I've written something, I want to view it looking nice in a web browser. Invariably, I need to edit the file later. I have three options: I could put up a text area and edit it in the web browser. I could launch my ftp program and Edit Externally... the file. Or I could automatically launch TextMate, my editor of choice, with a simple txmt:// link on the web page.
Best, Eric
On Dec 14, 2004, at 0:03, Eric Ocean wrote:
Awhile back I seem to remember Allen suggesting he could create a TextMate protocol (e.g. txmt://path/to/my/file). I've come to the conclusion that if this was available, I would use it a lot.
After finding out how close to impossible it is to write a command line tool that uses the ODB Editor Suite, and figuring out how I can detect if the URL request originates from within TM's web preview (to not perform dangerous operations requested from outside TM) I'm also convinced that this URL scheme is a good idea, and it's likely to appear in 1.1b1.
The syntax will be: txmt:open?url=protocol:/path/to/file&line=<number>&column=<number>
The arguments are optional and in the future I may think of other commands than “open”.
With this I'll also let the command output be to HTML views, which btw takes care of the in-app man-browser that has been requested, since the command would then just be: GROFF_TYPESETTER=html man -t $TM_CURRENT_WORD With output set to HTML :)