joplin / plugin-templates

Create templates in Joplin and use them to create new notes and todos.
MIT License
163 stars 23 forks source link

Feature request: Create links to matching notes #58

Open shbach opened 2 years ago

shbach commented 2 years ago

Would it be possible to create links to notes that are an exact match for existing notes?

For example, every week I use the template plugin to create a weekly review note that is titled in a standard way. i.e. template_title: {{#custom_datetime}}GGGG-[W]WW{{/custom_datetime}} review. Also, every day I create a daily note (again using a template) and here I want to automatically link it to the weekly review note. So I want something like this [[{{#custom_datetime}}GGGG-[W]WW{{/custom_datetime}} review]] in my daily note template to automatically create a link to the weekly review note. Whatever is in enclosed in double brackets [[ ]] should be used to do a match for an existing note and create a note link to it. So it sort of does what this plugin does but less manually and the link will only be one way (no link back).

Also, if #53 is implemented, in the daily note, I could also do [[{{yesterday}} daily note]] to link to the previous day's note (assuming I always title my daily notes using template_title: {{date}} daily note).