[Org] When no date is given, default to today

This commit is contained in:
Daniel - 2017-12-02 21:49:13 +01:00
parent bc08f185fd
commit 984777fdc2
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 3 additions and 1 deletions

View File

@ -1093,7 +1093,9 @@ DATE should be a string of the form %Y-%m-%d. The timeline will
be formatted for this day, starting at 00:00 and ending at
23:59 (sorry, no leap seconds supported yet). When not given,
FILES defaults to `org-agenda-files."
(interactive "sDate: ")
(interactive "sDate (default today): ")
(when (string-empty-p date)
(setq date (format-time-string "%Y-%m-%d")))
(db/org-format-timeline (concat date " 00:00")
(concat date " 23:59")
files))