chhoumann / quickadd

QuickAdd for Obsidian
https://quickadd.obsidian.guide
MIT License
1.5k stars 136 forks source link

[FEATURE REQUEST] Option for Week-Month in {{DATE:}} #511

Open alxgoldstn opened 1 year ago

alxgoldstn commented 1 year ago

Is your feature request related to a problem? Please describe. I use a planner following the naming scheme gggg.MM.[Wk]w.md. So:

2023.05.Wk19.md
2023.05.Wk20.md
2023.05.Wk21.md
2023.05.Wk22.md

I use QuickAdd to add tasks to each day of the week.

The problem is that some weeks overlap into other months. Today is June 1st, so using QuickAdd to add to the file gggg.MM.[Wk]w.md doesn't add to 2023.05.Wk22.md >> # 6.01 Thursday because we're now in June. But my week is still in the last week of May.

image

Describe the solution you'd like Periodic Notes {{DATE:}} syntax automatically takes this into account when using Weekly Notes — my "Open Weekly Note" still opens 2023.05.Wk22.md despite today being 6/01. However, I expect that it knows to do this because that's specifically a weekly note that it's trying to open.

QuickAdd is used for a lot more, so there are definitely people using it who would want the current behavior of writing the current month 06 when they put {{date:MM}} on 6/01. However, I'd like some way to get "May" until next week when we're fully into "June".

Complicating this, I actually want to get a task added to the file 2023.05.Wk22.md under the heading 6.01 Thursday, which means the same QuickAdd capture would need to be able to add to this week's "month" filename, but use this (actual) "month" date in the heading.

2023.05.Wk22.md
# 5.29 Monday
# 5.30 Tuesday
# 5.31 Wednesday
# 6.01 Thursday
  ...                   ← (Want to add my task here)
# 6.02 Friday

I'm thinking a new token is needed for {{DATE:}} but I'd welcome any other ideas. Thanks!