Skip to content

Instantly share code, notes, and snippets.

@daeh
Last active May 6, 2022 04:30
Show Gist options
  • Save daeh/0f2ef3a63fff5d4fc5b7943f0e3f373d to your computer and use it in GitHub Desktop.
Save daeh/0f2ef3a63fff5d4fc5b7943f0e3f373d to your computer and use it in GitHub Desktop.
obsidian-default-template
created assets tags
<% tp.date.now('YYYY-MM-DD') %>T<% tp.date.now('HH-mm') %>
<% tp.file.path(false).split('/').slice(0, -1).join('/') + '/_resources/' + tp.file.title + '.assets/' %>

<% tp.file.title %>

assets


<% tp.file.cursor(1) %>

@daeh
Copy link
Author

daeh commented Dec 25, 2021

I often want to open the folder containing all of the assets attached to an Obsidian MD note. For me, assets are located in in folder named {note_basename}.assets (e.g. ./_resources/{note_basename}.assets). Here's a template for the Obsidian Templater plugin that gives a clickable link to open that folder (on MacOS). (See SilentVoid13/Templater#485)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment