Use filename as date fallback #1230
Replies: 3 comments 10 replies
-
Hi @jloh, many thanks for this. I could have sworn that this had been requested previously, but have hunted high and low in Issues and Discussions and cannot find it right now. It isn't possible, and it is a popular request. Having it logged here is helpful. Thank you.
Thank you! I took over maintaining and developing it a few months ago. @schemar gets all the credit for creating and popularising it! |
Beta Was this translation helpful? Give feedback.
-
See also this comment: #130 (comment) @mvdkwast wrote:
I would be really interested in seeing this code!
Interesting questions. As another possible scenario, 'if a task is in any file with a date in the name, and the task does not have its own due, scheduled or start date, then use the date from the file name as the due date, to save me having a due date to add to ever task'. In this scenario, it doesn't matter whether the file is a daily note or not. |
Beta Was this translation helpful? Give feedback.
-
The ability to optionally use file name in date as scheduled date has been released, in Tasks 1.18.0. Documentation in: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
First off thankyou so much for creating Obsidian Tasks! I've been through every task tracker under the sun over the years and I think I've finally found one I'll manage to actually stick with.
I create a "dashboard" of sorts with all my tasks using a Dataview JS query like this:
This works great since I store tasks in a few different files but also heavily use periodic notes to store ad-hoc tasks as my day goes on. My periodic notes are created in the format
YYYY-MM-DD.md
in a folder likeDaily Notes/YYYY/MM
. Pretty standard.This setup lets me show current daily tasks from outside the daily note in my "dashboard" as due today which is perfect.
The issue I run into is creating tasks in future daily notes. I have a separate Dataview query that shows overdue tasks like this:
This makes tasks outside of my daily notes that have a schedule/due date show up and also tasks inside previous daily notes. If I create a task in a future daily note however it also appears here since it isn't in todays note.
It would be awesome if I could tell Obsidian Tasks to try using the current files filename as the fallback for a date of the task or if its easier some frontmatter that I could easily put in using periodic notes. This would let me create future periodic notes and not have its tasks show up in the overdue view. Apologies if this is currently possible, I've searched through all the settings and can't find anything appropriate!
Completely understand this is a bit of a unique usecase and if it isn't possible I can just schedule my future tasks outside of periodic notes and set a date against them (I do this currently).
Beta Was this translation helpful? Give feedback.
All reactions