btrask / stronglink

A searchable, syncable, content-addressable notetaking system
Other
1.04k stars 39 forks source link

Hash URI protocol handler #42

Open btrask opened 9 years ago

btrask commented 9 years ago

We tried using navigator.registerProtocolHandler but it was very disappointing outside of Firefox on Linux. Chromium requires the web+ prefix, and on OS X dynamic registration is not well supported.

I think this issue mainly depends on having a native application.

In the meanwhile, I don't think this is a huge problem. Hash links are clickable within StrongLink (just like wiki links are clickable within wikis), and at worst you can always copy and paste.

For future reference, on OS X there is LSSetDefaultHandlerForURLScheme. Of course the preferred way is to use a bundle plist.