Sublime Forum

Support opening files through URL handling

#1

Please provide a URL handler for accessing Sublime Text from external applications.

1 Like

#2

What kind of action should St perform when clicking on a url in which format?

0 Likes

#3


0 Likes

#4

Such as:
sublimetext://open?url=file:///path/to/file

0 Likes

#5

Did anyone manage to associate URIs on Mac? Tried these:

SwiftDefaultApps

0 Likes

#6

I tried SwiftDefaultApps and managed to open ST from browser with subl: but didn’t figure out how to pass an actual file path to be opened.

Maybe a macOS guru could help us figure that out. It might be SwiftDefaultApps ignoring everything after : though :slight_smile:

0 Likes

#7

Tried https://github.com/inopinatus/sublime_url ? It works for me, on Sonoma 14.1 + ST4.

0 Likes