dendronhq / dendron

The personal knowledge management (PKM) tool that grows as you do!
https://wiki.dendron.so
Apache License 2.0
6.68k stars 252 forks source link

Allow apple mail links in markdown links #1779

Open west-rynes opened 2 years ago

west-rynes commented 2 years ago

Please select if your request is either something new or an enhancement

Please select the area your request applies to. (Multiple selections are possible)

Is your feature request related to a problem? Please describe

Allow apple mail links to work in markdown links.

Describe the solution you'd like

Would be great to have links like:

[email reference](message://<f98ac6c260344b0d841de7c72858be0f@1749>)

run on the os open "message://<f98ac6c260344b0d841de7c72858be0f@1749>" which then opens the message in apple mail. Applications like Thinks.app do this. I often need to refer to emails and this would be helpful.

You can see info on the message URL format on MacOS and also how to see the message IDs in apple mail.

Then, if the above could work, users could easily refer to email messages they may need to respond to in a todo list or a reference.

Finally, it would be great to then allow dragging an email onto VSCode from apple mail and then generate the URL markdown link automatically. Other apps like Things do that.

west-rynes commented 2 years ago

As an update, it looks like if I encode the message ID as:

[message]("message://%3Cf98ac6c260344b0d841de7c72858be0f%401749%3E")

This does work if I do the command dendron: open link. But it must be encoded, with the @ or <> brackets it does not open.

I'm still trying to figure out a way to drag a message into VS code and get it to generate the link automatically.

jonathanyeung commented 2 years ago

Thanks @kuchi for the feature suggestion.