typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.53k stars 58 forks source link

Looking forward to supporting "URL Schemes" #3232

Open hedame opened 4 years ago

jgclark commented 4 years ago

I suggest you might like to give rather more description if you want the developers to take this seriously. What new behaviours are you hoping for, and on which platforms? Normally x-callback-url schemes (if that's what you have in mind) are made available for quite controlled actions and well-bounded data sets. Off the top of my head that might well not be relevant for Typora.

macdhuibh commented 4 years ago

I was just looking to see if this was an existing feature today. I'm using Typora and Drafts on macOS and would like quick way to send text from Drafts to a new (unsaved) document in Typora. There are other ways to go about it but in this case a callback-url scheme would be really handy.

For example in Marked 2 you can use their URL Handler to preview a set of text like this x-marked://preview?text=[[draft]]

On Editorial for iOS there is similar functionality in their Editorial URL Schemes. There an new document can be created via the following URL editorial://new/[[safe_title]].md?root=local&content=[[body]]

Not mission critical but would certainly be a nice-to-have.

abnerlee commented 4 years ago

relates #1999