-
Notifications
You must be signed in to change notification settings - Fork 210
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
Support ICS 'categories' field #414
Conversation
- Add a `categories` field to the `event` class - Add the `categories` field to editor - Add the `-g` flag to `ikhal new`
Implementation looks straightfoward, 👍 |
@@ -451,6 +458,8 @@ def relative_to(self, day, full=False): | |||
body += ', ' + self.description.strip() | |||
if self.location.strip() != '': | |||
body += ', ' + self.location.strip() | |||
if self.categories.strip() != '': | |||
body += ', ' + self.categories.strip() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would make sense to group the calendar selector and the categories textfield together.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a matter of personal taste.
The right solution would be to have a configuration item for the order of fields. For example
order_print_normal = Time, Title
order_print_full = Title, Title, Description, Categories
order_interactive = Title, Organizer, Location!, Date, Calendar, Categories
order_editor = Title, Calendar, Location, Categories, Description, Date, Repeat, Alarm
With a !-mark if an item must be displayed even if it is empty. Would be useful to also mask "Alarm" in the editor, which I never use.
Thanks for the PR! First let me say that I'm going to merge this PR, because categories are But... On Mon, May 09, 2016 at 03:55:32AM -0700, Pierre DAVID wrote:
|
In the RFC the example for multiple categories ( |
This could be related to: collective/icalendar#127 |
Asking for your opinions: is this feature usable with that bug in icalendar? |
Only with one category entered I suspect. |
I intensively use categories with SOGo server, which supports only one category by event (UI design limit). So, I agree with @untitaker, this feature is usable as is, provided one does not try to use more than one category. |
Thank you, @pdav! |
ikhal, version I use fastmail. If I modify an event in ikhal, I get:
ikhal is adding a |
I've been seeing this for a while too (though I'd been thinking it one was of my many broken, semi-experimental events). All khal-created events are not uploading to fastmail (which is quite strict in it's validations). I've created #453 to properly track this. |
categories
field to theevent
classcategories
field to editor-g
flag toikhal new