roovo / obsidian-card-board

An Obsidian plugin to make working with tasks a pleasure (hopefully anyway).
MIT License
494 stars 21 forks source link

Due-date detection fails with daily notes organized in sub-folders #166

Open craigconstantine opened 1 year ago

craigconstantine commented 1 year ago

I'm doing something unusual with Daily Notes's configuration. :)

I'm creating directory structure for my Daily Notes by adding additional elements in the Date Format setting of the Daily Notes plugin. Notice the "current syntax" commentary from Daily Notes…

Screenshot 2023-09-15 at 07 31 37

This ends up creating nested sub-directories by year and month…

Screenshot 2023-09-15 at 07 33 52

Card Board finds my todos in the various files within the current month's directory; those files are in the same sub-directory as today's daily note.

But todos in other sub-directories (eg, in the previous month's 2023-08 which is a sibling to the current month's 2023-09) don't have due-dates set based on their filename. All the todos in the "Undated" column are coming from Daily Notes in my 2023-08 directory…

Screenshot 2023-09-15 at 07 36 53

Possible change?

I'm thinking Card Board is examining the full path for today's daily note. And treating only todos in files in that one directory as having due dates based on the filename. (Which would work fine in the usual situation where the full path to today's daily note is where all daily notes are found.)

Instead, I think Card Board should look only at the Daily Notes's "New File Location" setting to decide if todos due dates get decided by filenames.

roovo commented 9 months ago

Hi and thanks for this. I've just been trying to replicate and am not having any joy as things seem to be working as I would expect so I am not seeing the issue:

Screenshot 2024-01-07 at 20 19 37

I have the following setup for Daily Notes which looks in line with yours...

Screenshot 2024-01-07 at 20 26 54

I don't suppose you would be able to prepare me a small sample vault which shows the behaviour, zip it up and attach it to the issue so I can see if I can work out what is happening.

Many thanks again

craigconstantine commented 8 months ago

Thanks for the followup. Unfortunately, I've moved on from using this, so I'm not sure I can reproduce it. ¯\_(ツ)_/¯

roovo commented 8 months ago

Thanks for letting me know and no prob at all. I'll leave the issue open in case someone else has the same or similar issue and can help!

Thank you again and all the best

dubyasqrd commented 8 months ago

Hi - I'm getting a similar issue - when I have a task in a daily note, it assigns the due date to be that of the daily note, even the due date is removed. When you move the task out a file with date title the issue stops. So, CardBoard seems to be referencing the date in the path even if there's no task emoji. I realize that this could be helpful for some (a task in a daily note would have the due date of the daily note - but then when you want to assign due dates it is problematic. An image of my daily note syntax is below.

Thank you for your help.

image

roovo commented 8 months ago

Hi @dubyasqrd - Many thanks, I think what you are describing is the intended default behaviour for using CardBoard with daily notes. It is possible to disable this behaviour so tasks on daily note pages are treated in the same way as tasks on other pages in the vault using this Global Setting:

Screenshot 2024-01-28 at 10 14 54

If you want to keep the default behaviour for most of your tasks (so that they are given the due date of the note), but have the occaistional task you wish to not have a due date when it is on a daily note page, you can remove the due date from individual tasks by including @due(none) on the line of the task.

The latest release (just released today) has added the ability to set the due date of a task by right clicking on a card and either clearing the date to remove the due date or setting whatver date you wish, which makes it easier to do this direct from the CardBaord view.

Hope this helps!

dubyasqrd commented 8 months ago

I over looked this in the Global Settings - thank you for the clarification - very helpful.