kaiiiz/obsidian-raindrop-highlights-plugin

Way around "Append Mode" off as dangerous option

Opened this issue · 0 comments

In this plugin, the "Append Mode" flag is labelled dangerous. I added the last line below as my way to handle notes where I want to make comments. This way your notes are in a seperate file which is not overwritten. I thought that this could be added to the documentation or as a comment in the settings for the plugin.

Thanks for the wonderful plugin!

Mark Stankus

{% if is_new_article %}

Metadata

{% if link %}Source URL:: {{link}}{% endif %}
{% if tags|length %}Topics:: #{{ tags | join(", #") }}{% endif %}


{{title}}

{% if excerpt %}{{excerpt}}{% endif %}

Highlights

{% endif -%}{% for highlight in highlights %}
{% if highlight.color == "red" -%}
{%- set callout = "danger" -%}
{%- elif highlight.color == "blue" -%}
{%- set callout = "info" -%}
{%- elif highlight.color == "green" -%}
{%- set callout = "check" -%}
{%- else -%}
{%- set callout = "quote" -%}
{%- endif -%}

[!{{callout}}]+ Updated on {{highlight.lastUpdate}}

{{highlight.text.split("\n") | join("\n>")}}
{% if highlight.note -%}> > {{highlight.note + "\n"}}{%- endif %}

{%- endfor -%}

[[{{title}}---Notes]]