Skip to content

Instantly share code, notes, and snippets.

@dsebastien
Created July 23, 2024 13:38
Show Gist options
  • Save dsebastien/30c5d5e85a3dd29f59b23a18089e1aef to your computer and use it in GitHub Desktop.
Save dsebastien/30c5d5e85a3dd29f59b23a18089e1aef to your computer and use it in GitHub Desktop.
Error in user YAML: (<unknown>): did not find expected key while parsing a block mapping at line 1 column 1
---
authors: {{authors}}{{directors}}
tags: {{hashTags}}
aliases:
  - {{title}}
  - {{citekey}}
url: {{url}}
doi: {{doi}}
citekey: {{citekey}}
keywords: {{allTags}}
created:
updated:
---

<%* let title = "{{title}}"; let date = tp.date.now("YYYY-MM-DD"); await tp.file.rename(& ${date} ${title}); _%>

  • Title:: {{title}}
  • Zotero Link: {{pdfZoteroLink}}
  • Abstract: {{abstractNote}}

Relations

{% for relation in relations -%} {%- if relation.citekey -%} Related: {{relation.citekey}} {% endif -%} {%- endfor %}

Annotations

{% for annotation in annotations -%} {%- if annotation.annotatedText -%} {{annotation.annotatedText}}”{% if annotation.color %} {{annotation.colorCategory}} {{annotation.type | capitalize}} {% else %} {{annotation.type | capitalize}} {% endif %}Page {{annotation.page}} {%- endif %} {%- if annotation.imageRelativePath -%} ![[{{annotation.imageRelativePath}}]] {%- endif %} {% if annotation.comment %} {{annotation.comment}} {% endif %} {% if annotation.allTags %} {{annotation.allTags}} {% endif %} {% endfor -%}

Mentioned in

TABLE created, updated as modified, tags, type, related
FROM ""
WHERE contains(related, "{{citekey}}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment