Sunday, December 27, 2009

Best way to handle txmt:// urls (maybe use netrw?)

Hi,

What would be the best way to handle txmt:// kind of urls[1] that are
used by the textmate editor? Such an url looks like: txmt://open?url=file://file/to/open

Is there an autocmd that I can use to catch editing requests sent to
vim via gvim --remote-silent FILENAME? My first approach was to try

autocmd BufReadCmd txmt://* call s:Edit(expand('<afile>'))

but this didn't work.

Is there a way to tweak netrw to handle such urls? Or would it be
preferable to tackle this problem from within firefox (maybe use
launchy or mozex) or at an OS level?

Regards,
Tom


[1] http://blog.macromates.com/2007/the-textmate-url-scheme/

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment