j-palindrome / obsidian-time-ruler

A drag-and-drop time ruler combining the best of a task list and a calendar view (integrates with Tasks, Full Calendar, and Dataview).
MIT License
214 stars 7 forks source link

Only include tasks from current daily note (without Tasks plugin)? #105

Closed sachit-menon closed 5 months ago

sachit-menon commented 5 months ago

Hi, thanks for this plugin! I'm new to dataview, and I'm wondering if there's an easy way to only include tasks listed in the current day's daily note under 'today' -- without having metadata inserted into the line for the task with Tasks/Day Planner/etc. Specifically, what I normally write in dataview inline is:

TASK
FROM "_Daily Notes"
WHERE file.name = dateformat(date(today), "yyyy-MM-dd")

Is this compatible with Time Ruler? It seemed like the default, but my tasks are not showing up in Today unless I manually turn on Tasks or Day Planner. Thanks!

j-palindrome commented 5 months ago

Yes, you would use a custom function using the Dataview JS api under the Filter Function setting. https://blacksmithgu.github.io/obsidian-dataview/api/code-reference/#dvpagessource