mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 16:24:18 +00:00
Tag-based behavior changes?
This commit is contained in:
parent
e9c9aad514
commit
5ebecab01c
1 changed files with 12 additions and 8 deletions
|
|
@ -105,14 +105,18 @@
|
|||
(if (when-let (s (org-entry-get (point) "SCHEDULED"))
|
||||
(org-time> s (org-matcher-time "<now>")))
|
||||
'active
|
||||
(pcase state
|
||||
("EMPTY" (empty-status?))
|
||||
("SEQ" (seq-status?))
|
||||
("META" (meta-status? greedy-active))
|
||||
("ONE" (when (eq 'project (opr/ambiguous-task-or-project))
|
||||
(seq-status?)))
|
||||
("TODO" (when (eq 'project (opr/ambiguous-task-or-project))
|
||||
(seq-status?)))))))))))
|
||||
(let ((status (pcase state
|
||||
("EMPTY" (empty-status?))
|
||||
("SEQ" (seq-status?))
|
||||
("META" (meta-status? greedy-active))
|
||||
("ONE" (when (eq 'project (opr/ambiguous-task-or-project))
|
||||
(seq-status?)))
|
||||
("TODO" (when (eq 'project (opr/ambiguous-task-or-project))
|
||||
(seq-status?))))))
|
||||
(if (and (member "invis_when_active" (org-get-tags))
|
||||
(eq status 'active))
|
||||
'invis
|
||||
status)))))))))
|
||||
|
||||
(provide 'opr-projects)
|
||||
;;; opr-projects.el ends here
|
||||
|
|
|
|||
Loading…
Reference in a new issue