Exclude the tasks under the current path #1043
-
Consider the following note, named "hello_world.md":
in which the first heading includes all the tasks defined in other locations, but not in the current path. This works fine, but since I use this template a lot (in my own use case, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, if you use one of the templating plugins, you can do exactly that. Your example would work with the core plugin Templates. Just use whatever "insert template" command comes with the plugin you use to insert the snippet. Another example: I use the Periodic Notes plugin, which allows math on dates. You can insert a template snippet into a note at any point in time, not just note creation! Hope this helps! |
Beta Was this translation helpful? Give feedback.
Yes, if you use one of the templating plugins, you can do exactly that. Your example would work with the core plugin Templates. Just use whatever "insert template" command comes with the plugin you use to insert the snippet.
Another example: I use the Periodic Notes plugin, which allows math on dates.
{{date+1d}}
is a template for "tomorrow". So to have a "starts before tomorrow" line in a task query in my daily note that will be fixed to that day's "tomorrow", my daily note template has a task query with the linestarts before {{date+1d}}
. Then when I create the note from the template, it gets turned into the correct fixed date.You can insert a template snippet into a note at any point …