Question

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?

Was it helpful?

Solution

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/)

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top