emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org-modern 6fc453d10b 45/65: Recognize time stamps with


From: ELPA Syncer
Subject: [elpa] externals/org-modern 6fc453d10b 45/65: Recognize time stamps with duration (Fix #9)
Date: Mon, 7 Mar 2022 12:57:47 -0500 (EST)

branch: externals/org-modern
commit 6fc453d10bdaaa359fa209919e81c09990bce8fa
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Recognize time stamps with duration (Fix #9)
---
 example.org   | 3 ++-
 org-modern.el | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/example.org b/example.org
index 410e5a9bbf..ba41e2c515 100644
--- a/example.org
+++ b/example.org
@@ -25,7 +25,8 @@ which are styled by =org-modern=.
 * Timestamps
 DEADLINE:  <2022-03-01 Tue>
 SCHEDULED: <2022-02-25 10:00>
-RANGE:     [2022-03-01]--[2022-04-01]
+DRANGE:    [2022-03-01]--[2022-04-01]
+TRANGE:    [2022-03-01 Tue 10:42-11:00]
 TIMESTAMP: [2022-02-21 Mon 13:00]
 REPEATED:  <2022-02-26 Sat .+1d>
 
diff --git a/org-modern.el b/org-modern.el
index 5eef0648c9..85812c033c 100644
--- a/org-modern.el
+++ b/org-modern.el
@@ -480,7 +480,7 @@ Set to nil to disable the indicator."
       (when org-modern-tag
         '(("^\\*+.*?\\( \\)\\(:.*:\\)[ \t]*$" (0 (org-modern--tag)))))
       (when org-modern-timestamp
-        '(("\\(?:<\\|\\[\\)\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}\\(?: 
[[:word:]]+\\)?\\)\\(\\(?: [0-9]\\{2\\}:[0-9]\\{2\\}\\)?\\(?: 
[.+-]+[0-9]+[hdwmy]\\)?\\)\\(?:>\\|\\]\\)"
+        '(("\\(?:<\\|\\[\\)\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}\\(?: 
[[:word:]]+\\)?\\)\\(\\(?: [0-9:-]+\\)?\\(?: 
[.+-]+[0-9]+[hdwmy]\\)?\\)\\(?:>\\|\\]\\)"
            (0 (org-modern--timestamp)))))
       (when org-modern-statistics
         '((" \\[\\(\\([0-9]+\\)%\\|\\([0-9]+\\)/\\([0-9]+\\)\\)\\]" (0 
(org-modern--statistics)))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]