summaryrefslogtreecommitdiff
path: root/org-fc.el
diff options
context:
space:
mode:
authorLeon Rische <leon.rische@me.com>2020-06-25 18:02:41 +0200
committerLeon Rische <leon.rische@me.com>2020-06-25 18:02:41 +0200
commitee020753838a6b386f800e5ff8eb0ecb166dc461 (patch)
tree91a1f9d42292e47314b501eac89427998a0d31fb /org-fc.el
parent07509fde3fa7018f53da838f66a04138e4308578 (diff)
Hide keyword timestamps during review
Diffstat (limited to 'org-fc.el')
-rw-r--r--org-fc.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/org-fc.el b/org-fc.el
index b8d96c3..726009d 100644
--- a/org-fc.el
+++ b/org-fc.el
@@ -1009,6 +1009,14 @@ FACE can be used to set the text face of the overlay."
;;;; Hiding Drawers
+(defun org-fc-hide-keyword-times ()
+ "Hide all timestamp keywords (e.g. DEADLINE) after point."
+ (save-excursion
+ (while (re-search-forward org-keyword-time-regexp nil t)
+ (let ((start (1- (match-beginning 0)))
+ (end (match-end 0)))
+ (org-fc-hide-region start end)))))
+
(defun org-fc-hide-drawers ()
"Hide all drawers except ones in `org-fc-drawer-whitelist' after point."
(save-excursion
@@ -1773,6 +1781,7 @@ Valid contexts:
;; Make sure the headline the card is in is expanded
(org-reveal)
(org-fc-narrow-tree)
+ (org-fc-hide-keyword-times)
(org-fc-hide-drawers)
(org-fc-show-latex)
(org-display-inline-images)