GothenburgBitFactory / taskwarrior

Taskwarrior - Command line Task Management
https://taskwarrior.org
MIT License
4.01k stars 276 forks source link

[TW-1797] Coloring weekends and holidays #1819

Open taskwarrior opened 6 years ago

taskwarrior commented 6 years ago

Roy Zuo on 2016-04-22T05:35:49Z says:

I want to be able to give a different background color to weekend/holidays so that from list view I can directly tell which days I will be off so that I can schedule accordingly.

I tried putting in "color.weekend" and "color.holiday" but they do not work. However, "color.calendar.weekend" do work but I do not want to from type to time to switch to calendar view.

I hope this could be implemented, and it would just make the workflow easier.

Thanks.

taskwarrior commented 6 years ago

Migrated metadata:

Created: 2016-04-22T05:35:49Z
Modified: 2016-04-23T05:52:08Z
taskwarrior commented 6 years ago

Paul Beckingham on 2016-04-22T12:27:50Z says:

Just to clarify, are you wanting to control the color of tasks that are due on the weekend or holidays?

taskwarrior commented 6 years ago

Roy Zuo on 2016-04-22T21:23:10Z says:

You are right. I use "due" heavily and even forget I am using it.

The configuration parameters should be "color.due.weekend" and "color.due.holiday"

sebu06 commented 2 years ago

I have this implemented. However, for the holiday highlighting there is the issue, that the intrinsic holidays like easter seems to be only parsed in Datetime (libshared) but those holidays are not stored in a list. As far as I understand the code from CmdCalendar.cpp, only custom holidays from the config attribute calendar.holidays are colored in the calendar output as well. Should the behaviour for the task list be the same or should I implement something like isHoliday() in Datetime.cpp?