3

I loved the ability to open a file in textmate from other applications using the txmt://open/?url=file:// command. I can't seem to find anything similar for SublimeText 2, does anybody know how I can do this?

4

2 回答 2

2

subl-handler is an app that maps textmate's txmt url protocol to Sublime Text. I haven't tried it myself, but looks like it's what you're looking for.

Available here: https://github.com/hiddenbek/subl-handler

(Side note: for windows users, there's this: https://bitbucket.org/sublimator/sublimeprotocol/src/)

于 2012-02-28T01:49:19.900 回答
0

Which operating system are you using?

If you are on the Windows OS this is easy enough to do by registering the file extension with the Windows Shell and then using the ShellExecute WIN32 API.

于 2012-02-27T15:03:52.880 回答