From 41190b84ffcc9c2f2d9351d74146e4d260440548 Mon Sep 17 00:00:00 2001 From: Julian Wollrath Date: Mon, 4 Sep 2023 10:48:35 +0200 Subject: [PATCH 1/3] Add url-separator Similar to description-separator add an url-separator. --- khal/khalendar/event.py | 3 +++ 1 file changed, 3 insertions(+) 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] From ad05b697fbbc814f7b0002cac2d15723bf2ec5d7 Mon Sep 17 00:00:00 2001 From: Christian Geier Date: Mon, 23 Oct 2023 23:33:27 +0200 Subject: [PATCH 2/3] documentation for `url-separator` --- doc/source/usage.rst | 3 +++ 1 file changed, 3 insertions(+) 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 From d2889c23878598c7a6244f26269397c14ddaf51c Mon Sep 17 00:00:00 2001 From: juw Date: Tue, 24 Oct 2023 11:41:29 +0200 Subject: [PATCH 3/3] Update AUTHORS.txt --- AUTHORS.txt | 1 + 1 file changed, 1 insertion(+) 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