-
-
Notifications
You must be signed in to change notification settings - Fork 283
Description
Is your feature request related to a problem? Please describe.
For creating todos, I have a template like:
- [ ] <% tp.date.now("HH:mm") %> <% tp.file.cursor(1) %> (context:: <% tp.frontmatter.context %>) [[<% tp.file.title %>]] <% tp.file.cursor(0) %>
⌛<% tp.date.now("YYYY-MM-DD") %> This works great if I want to create todos within a file that the todo is about, but sometimes I want to create the todos in another file -- simplest example: a daily note.
Ideally there could be some way to apply a file context to a template that gets included into the current file.
Describe the solution you'd like
I'd like to apply a template with a file reference, that modifies some of the contexts for tp.file.title, tp.frontmatter.*, etc -- anything that relates to the current file should relate to the supplied file.
This could be via a secondary hotkey, similar to Open insert template modal, that called Templater: Open replace link template modal that replaces the obsidian [[note link]] under the cursor, and uses it as the file context as described above.
Describe alternatives you've considered
Another way to apply a link could be to have a secondary modal that accepts a link.