Leonezz / obsidian-tasks-calendar-wrapper

This plugin currently provides a timeline view to display your tasks from your obsidian valut, with customizable filters and renderring options.
MIT License
168 stars 10 forks source link

Feature request: add a configuration to allow choosing which date properties to be assigned as the daily note date for daily note items #103

Open yfzhao20 opened 6 months ago

yfzhao20 commented 6 months ago

发现只要一条任务在某天的 Daily Note 下,那么它就一定显示在对应日期的任务窗格中

如下图,task1 task3 自动推断了日期;而 task 4 即使指定了 schedule/start/due date ,该任务也会存在于这一天的窗格中

是否可以添加一个选项,使任何没有显式指定日期的任务都成为 unplanned,无论是否在 Daily Note 中?

如下图,希望有一个选项,使 task1 task3 成为 unplanned,而 task4 按照设定的日期显示

图片

提前感谢作者!🌹

cyrusn commented 6 months ago

Agree, same issue even using DataView format. I scheduled a task to 2026-03-01, but show as this task is in my daily file 2023-08-24.md

image
Leonezz commented 6 months ago

发现只要一条任务在某天的 Daily Note 下,那么它就一定显示在对应日期的任务窗格中

如下图,task1 task3 自动推断了日期;而 task 4 即使指定了 schedule/start/due date ,该任务也会存在于这一天的窗格中

是否可以添加一个选项,使任何没有显式指定日期的任务都成为 unplanned,无论是否在 Daily Note 中?

如下图,希望有一个选项,使 task1 task3 成为 unplanned,而 task4 按照设定的日期显示

图片

提前感谢作者!🌹

你的意思是需要一个设置让所有放在 daily note 中的条目不默认使用该 daily note 的日期吗?我觉得是不是至少设置个 create date 更加合理?anyway 这个功能是可以实现的,可以加入一个设置项允许用户选择 daily note 日期要默认设置到哪些日期字段。不过我目前同时需要开发新的版本和修复现有 issue,有点忙不过来,因此这个 feature 可能短期无法提供,望理解。

Leonezz commented 6 months ago

Agree, same issue even using DataView format. I scheduled a task to 2026-03-01, but show as this task is in my daily file 2023-08-24.md

image

From what I see, the behavior is the date of the daily note is set to create date, start date, and scheduled date by default, and the scheduled date got covered by the provided dataview format metadata later on, which is expected. I think it is not quite reasonable if the feature you would like to have is to discard the daily note date when there are already dates assigned to an item explicitly. But an option could be added to allow the users to choose which date properties need to be assigned as the daily note date by default (including no properties).

yfzhao20 commented 6 months ago

anyway 这个功能是可以实现的,可以加入一个设置项允许用户选择 daily note 日期要默认设置到哪些日期字段。

我之前通过改 main.js 实现了一部分(至少实现了是否自动分配日期),看看有没有时间改下 ts 源码

不过我目前同时需要开发新的版本和修复现有 issue,有点忙不过来,因此这个 feature 可能短期无法提供,望理解。

谢谢您!