aboutsummaryrefslogtreecommitdiff
path: root/module/calp/terminal.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/calp/terminal.scm')
-rw-r--r--module/calp/terminal.scm12
1 files changed, 8 insertions, 4 deletions
diff --git a/module/calp/terminal.scm b/module/calp/terminal.scm
index 04effd68..316421eb 100644
--- a/module/calp/terminal.scm
+++ b/module/calp/terminal.scm
@@ -162,11 +162,11 @@
(date->string start))))
(format #t "\x1b[1m~a:\x1b[m ~a~%~%"
(G_ "End")
- (let ((start (prop ev 'DTSTART)))
- (if (datetime? start)
- (datetime->string (prop ev 'DTSTART)
+ (let ((end (prop ev 'DTEND)))
+ (if (datetime? end)
+ (datetime->string (prop ev 'DTEND)
(G_ "~Y-~m-~d ~H:~M:~S"))
- (date->string start))))
+ (date->string end))))
(format #t "~a~%"
(unlines (take-to (flow-text (or (prop ev 'DESCRIPTION) "")
width: (min 70 width))
@@ -290,6 +290,7 @@
">")))
(newline))
+;;; TODO what is this view?
(define-method (input (this <view>) char)
(case char
((#\j #\J down) (unless (= (active-element this) (1- (page-length this)))
@@ -300,6 +301,9 @@
((#\g) (set! (active-element this) 0))
((#\G) (set! (active-element this) (1- (page-length this))))
+ ;; TODO Launch edit mode!
+ ;; TODO should edit mode be here?
+ ((#\e) 'NOOP)
((#\q) '(pop)))