User Script Macro - Create Note for active Attachment File #1177
sebash4221
started this conversation in
Show and tell
Replies: 1 comment
-
|
Thanks for sharing! That's cool. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
I needed a shortcut to quickly create a note for an added attachment. Imagine you capture a pdf to the vault and want to write down some comments you need to create a new note and add a link to the pdf.
Solution
I have created a user script to get the active file (not checking if it is an attachment!), create a note side-by-side with the same name and add an embedding link to the attachment file.
Alternatives
The only plugin I found was the "Binary File Manager" which does the same thing but only for all unlinked binary files. I wanted to have more control over when and what file gets a note.
Beta Was this translation helpful? Give feedback.
All reactions