Skip to content

Add a calendar color legend or prefixes for calendar entries #315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
languitar opened this issue Dec 17, 2015 · 8 comments
Open

Add a calendar color legend or prefixes for calendar entries #315

languitar opened this issue Dec 17, 2015 · 8 comments

Comments

@languitar
Copy link
Contributor

I have quite a few calendars configured and often cannot remember which color relates to which calendar. Therefore, some kind of legend for the colors, or prefixing of entries with their calendar would be really helpful. probably the easiest solution could be to use the colors in the printcalendars command. However, I would better like to see the legend in parallel to the normal calendar and agenda views.

@geier
Copy link
Member

geier commented Dec 17, 2015

Good idea. Could you perhaps do a mockup how you imagine that to look?

@languitar
Copy link
Contributor Author

I think using multiple approaches would be good:

  1. Colors in printcalendars. That should be easy to implement.

  2. Adding an option to display the calendar with each entry. Something like this could work:

    10:00-12:00: Foo bar (calendar_1) ⟳
    12:30-13:00: Group Socializing (calendar_bla) ⟳
    14:00-16:00: Talk XYZ (blubb)
    
  3. Option to display a legend along with the calendars. I'd propose to just display the colored calendar names with Legend: as a title. Either below the calendar widget on the left or below the event list.

@youngmoney
Copy link
Contributor

the prefixing of calendars can be done with list and --format, (which I hope we replacing all listing/event viewing with)

@languitar
Copy link
Contributor Author

@youngmoney so this is already implemented now? Can you show an example how to use that?

@youngmoney
Copy link
Contributor

it is available in master

I simple example is: khal list --format "{start} {end} {title} ({calendar})"

or if you want to only do prefixes you can use any form of python string tempting so:

khal list --format "{start} {end} {title} ({calendar:.4})" shows only the first 4 characters of the calendar

right now the list command does not use calendar names correctly (no display names) but this could be added in future, there is also the option to use the calendar color using {calendar-color} which will be coming later as well

@languitar
Copy link
Contributor Author

Ok, but that doesn't help for ikhal?

@youngmoney
Copy link
Contributor

The hope is that the internals of list will get moved into ikhal as well, I am currently working on getting those internals into all of the other commands and will look into ikhal later

On Jun 6, 2016, at 1:59 AM, Johannes Wienke [email protected] wrote:

Ok, but that doesn't help for ikhal?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@geier
Copy link
Member

geier commented Jun 30, 2016

can now be done with ikhal as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants