Important meeting painted at least in red
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.1k
- Forks
- 233
- Avg merge
- 1h 44m
- Merged PRs (30d)
- 1
Description
Hello. Thank you very much for the development and maintenance of khal/ikhal which is a amazing piece of software which I use on a daily basis for my schedule.
I have a color code for different types of meetings with a corresponding config file (see below).
With this config, the days in the calendar overview are painted with those colors (two colors if there are >1 types of meetings). If there is the private_hour_meeting, I want that this day in the overview calendar should be painted AT LEAST in red. However with the current config file, this is not always the case (it can be painted in light blue and yellow instead if there are 3 types of meetings on that day (private_hour_meeting, private_hour_not_scheduled, private_hour_scheduled). How can I make sure that, if there is private_hour_meeting on a day, that corresponding day will be painted at least in red?
Second I also want that, if there is a birthday and a meeting (plus any potential additional scheduled item), that theday should be painted in green and red?
Note (if that helps): usually, the number of meeting (per day) is smaller than private_hour_not_scheduled (per day) and private_hour_scheduled (per day)
Many thanks in advance!
[view]
theme = dark #dark, light
[calendars]
[[private_hour_meeting]]
path = /path/to/work_hour_meeting
color = dark red
priority = 1
type = calendar
[[private_hour_not_scheduled]]
path = /path/to/work_hour_not_scheduled
color = light blue
priority = 17
type = calendar
[[birthdays]]
path = /path/to/birthdays
color = dark green
priority = 2
type = calendar
[[private_hour_scheduled]]
path = /path/to/work_hour_scheduled
color = yellow
priority = 3
type = calendar
[locale]
timeformat = %H:%M
dateformat = %d/%m/%Y
longdateformat = %d/%m/%Y
datetimeformat = %d/%m/%Y %H:%M
longdatetimeformat = %d/%m/%Y %H:%M
[default]
default_calendar = birthdays
highlight_event_days = True
[highlight_days] # this options colors the days according to their calendar colors
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading how the [highlight_days] configuration and calendar priorities determine colors in the terminal calendar overview. Reproduce a day containing private_hour_meeting with the supplied calendar configuration, then inspect how birthday and meeting colors are combined. Done means the requested red and green highlighting behavior is clearly defined and implemented or documented, with coverage for overlapping calendar items.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100