phildenhoff / logseq-raindrop

A Raindrop plugin for Logseq
MIT License
62 stars 5 forks source link

Support for org-mode #70

Closed choffee closed 1 year ago

choffee commented 1 year ago

Currently all the templates default to markdown. It would be good if it could spot I'm using org-mode and swap to using that.

I have a template for inserting them but I can't see how to change the "Added to raindop" template.

[[{{{url}}}][{{{title}}}]]
:PROPERTIES:
:title: {{{title}}}
:url: {{{url}}}
:Tags: {{{tags}}}
:date-saved: [[{{{dateCreated}}}]]
:last-updated: [[{{{dateUpdated}}}]]
:END:
phildenhoff commented 1 year ago

Ahh yes, I forgot org mode was an option! I've only used Markdown myself. Good suggestions :)

tracking this in https://github.com/users/phildenhoff/projects/2/views/1

phildenhoff commented 1 year ago

Do you have any recommendations for what you want in the default the "Added to Raindrop" template?

This is what I have at the moment, but I'm finding that the URLs that have slashes in them suddenly have italics... and the recommended way to prevent that is to include zero-width space characters, which I'd prefer not to do as that will likely break the URL if it's copied + pasted.

Saved to Raindrop:
{{#links}}
[[{{{raindropPreviewUrl}}}][{{{savedUrl}}} (Raindrop preview)]]
{{/links}}

I'm thinking of putting {{{savedUrl}}} as an in-line codeblock, but that looks like this in Logseq:

image

which isn't the best