diff --git a/AUTHORS.txt b/AUTHORS.txt index 1f5297dcf..6e4e7377e 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -53,3 +53,4 @@ Michael Tretter - michael.tretter [at] posteo [dot] net Raúl Medina - raulmgcontact [at] gmail (dot] com Matthew Rademaker - matthew.rademaker [at] gmail [dot] com Valentin Iovene - val [at] too [dot] gy +Julian Wollrath diff --git a/doc/source/usage.rst b/doc/source/usage.rst index 6439f885a..91b10493b 100644 --- a/doc/source/usage.rst +++ b/doc/source/usage.rst @@ -168,6 +168,9 @@ Several options are common to almost all of :program:`khal`'s commands url The URL embedded in the event, otherwise nothing. + url-separator + A separator: " :: " that appears when there is a url. + By default, all-day events have no times. To see a start and end time anyway simply add `-full` to the end of any template with start/end, for instance `start-time` becomes `start-time-full` and will always show start and end times (instead diff --git a/khal/khalendar/event.py b/khal/khalendar/event.py index 526fb1392..010da1ede 100644 --- a/khal/khalendar/event.py +++ b/khal/khalendar/event.py @@ -693,6 +693,9 @@ def format(self, format_string: str, relative_to, env=None, colors: bool=True): attributes["categories"] = self.categories attributes['uid'] = self.uid attributes['url'] = self.url + attributes['url-separator'] = "" + if attributes['url']: + attributes['url-separator'] = " :: " if "calendars" in env and self.calendar in env["calendars"]: cal = env["calendars"][self.calendar]