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
169 stars 10 forks source link

Feature Request: sort and view time of tasks #46

Closed iurobpn closed 1 year ago

iurobpn commented 1 year ago

I would like to have a timeline with the date and time of the current day. I can filter the current day easily, but the sort by start time only seems to sort by date. The idea is to create a timeline of tasks like that:

8:00 breakfast 8:30 work 12:00 lunch 13:00 task x

I have taken a look at the code, but it is way beyond my knowledge of javascript. In dataview js I can accomplish the sorting by doing:

var tasks = dv.pages("").file.tasks; dv.taskList(tasks.sort(t => t.start),false);

The false parameter just indicates to not group by file, which would sort by start time within the file groups. If this is feasible, it would be a nice feature.

Leonezz commented 1 year ago

Hi @iurobpn thanks for the feedback, currently time (hours and minutes) is not supported in this plugin.

However I found an alternative solution for your needs. That is using the time format as: HH:MM other text of the item., and then you can set the sorting order to text(ascending), and you will get the following view for the examples you provided:

image

Hope it helps!

iurobpn commented 1 year ago

I think this is the better than viewing with dataview, thank you @Leonezz.

Leonezz commented 1 year ago

glad to know it helps!