branch: externals/org-modern commit ef4a16a06cee6043afeadcd4564483e9ff115861 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
Time stamps: Improve coloring of dates with repeater (Fix #22) --- example.org | 3 ++- org-modern.el | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/example.org b/example.org index fb8bb1ea83..7a57d5b043 100644 --- a/example.org +++ b/example.org @@ -28,7 +28,8 @@ SCHEDULED: <2022-02-25 10:00> 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> +DREPEATED: <2022-02-26 Sat .+1d +3d> +TREPEATED: <2022-02-26 Sat 10:00 .+1d> * Blocks diff --git a/org-modern.el b/org-modern.el index ab87778476..54afc0febb 100644 --- a/org-modern.el +++ b/org-modern.el @@ -484,7 +484,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:-]+\\)?\\(?: [.+-]+[0-9]+[hdwmy]\\)?\\)\\(?:>\\|\\]\\)" + '(("\\(?:<\\|\\[\\)\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}\\(?: [[:word:]]+\\)?\\(?: [.+-]+[0-9]+[[:word:]]\\)*\\)\\(\\(?: [0-9:-]+\\)?\\(?: [.+-]+[0-9]+[[:word:]]\\)*\\)\\(?:>\\|\\]\\)" (0 (org-modern--timestamp))))) (when org-modern-statistics '((" \\[\\(\\([0-9]+\\)%\\|\\([0-9]+\\)/\\([0-9]+\\)\\)\\]" (0 (org-modern--statistics)))))))