summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkhal-list12
1 files changed, 12 insertions, 0 deletions
diff --git a/khal-list b/khal-list
index 53ab733..d662ba2 100755
--- a/khal-list
+++ b/khal-list
@@ -13,4 +13,16 @@ script -qefc '/usr/bin/khal list '"$(
| sed '
s@\xe2\x9f\xb3@@g
s@\r$@@
+' \
+| tr -d '\r' \
+| sed '
+ :a
+ $!N
+ s/\([^}]\)\s*\n/\1 /
+ ta
+ P
+ D
+' \
+| sed '
+ s/\(\(^\|}\)[^{}]\{47\}\)[^{}]\+\${/\1...${/
'