obsidian-todoist-plugin icon indicating copy to clipboard operation
obsidian-todoist-plugin copied to clipboard

Filter the tasks with a date retrieved from the metadata of the note itself

Open SamirAyman10 opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. Fist of all, thank you very much for the amazing plugin. I really appreciate your efforts.

Regarding the problem, there seems to be no way to retrieve the note date from the note metadata itself to be used in the filtering of the displayed tasks?

For example, if I want to create a tasks section in my daily note template and I want it to automatically filter tasks based on the date of the note itself? How can I do that?

Describe the solution you'd like I would like to be able to type a line that can retrieve the filtered date from the metadata of the note.

Describe alternatives you've considered The only alternative available now is to either type the exact date every time you create a note or filter using the built in today (Although this is a temporary solution till you create the following day note as the tasks will automatically update in all daily notes)

Additional context N/A

SamirAyman10 avatar Mar 01 '23 16:03 SamirAyman10

I like the idea of integrating more closely with daily notes as I expect this is a relatively common use case - I'll have a look at the feasibility of this

jamiebrynes7 avatar Apr 08 '23 14:04 jamiebrynes7

Any thoughts about this as of yet, or ideas on how it might be done?

jeffreylees avatar Oct 06 '23 01:10 jeffreylees

I realise this is a rather old request, but it can be accomplished with for example a daily note template by using Obsidian's built in {{date}} placeholder:

filter: "due: {{date:DD.M.YYYY}}"

This is compatible with daily notes created through the periodic notes/calendar plugin (and I assume the built in daily notes) Something I'm trying to figure out myself is whether something similar can be done to pull out all the tasks associated with a given week, say filter: "due before: 08.7.2024 & due after: 01.7.2024" for anything occurring in week 27 of 2024.

samawelch avatar Jun 26 '24 13:06 samawelch