pimutils / pimutils/khal

Important meeting painted at least in red

Open
#1,452 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.