obsidian-omnivore icon indicating copy to clipboard operation
obsidian-omnivore copied to clipboard

Add a way to do persistant notes in the template

Open lsolesen opened this issue 1 year ago • 0 comments

When changing the annotations in Omnivore and reimporting the previous notes are overwritten. Right now my template looks like this:

# {{{title}}}
#review #process/omnivore #omnivore

- [ ] Process {{title}} from Omnivore

[Read on Omnivore]({{{omnivoreUrl}}})
[Read Original]({{{originalUrl}}})

## Persistent notes
{% persist "notes" %}
{% endpersist %}

{{#highlights.length}}

## Highlights

{{#highlights}}
> {{{text}}} [⤴️]({{{highlightUrl}}}) {{#labels}} #{{name}} {{/labels}} ^{{{highlightID}}}
{{#note}}

{{{note}}}
{{/note}}

{{/highlights}}
{{/highlights.length}}

I tried adding the

## Persistent notes
{% persist "notes" %}
{% endpersist %}

But that also gets overwritten if the notes are reimported.

I also have the Zotero Integration which uses a Template. Here I use this: https://gist.github.com/QWxleA/c7f08e8feded332736a6b376045d0fe4

And what is written inside persist will persist between imports. Will it be possible to implement something like this?

lsolesen avatar Aug 24 '23 13:08 lsolesen