Allow NOTEs as refile-targets again
This partially reverts cff8720a44
, but keeps the
doc-string.
Rationale: TOPICs may contain notes which should be reviewd regularly. Those
TOPICs should also be tagged with NOTE but could (and should) in addition
contain sub-items about concrete tasks. In this case refiling to a NOTE should
be allowed.
Maybe limiting refiling to NOTE:TOPIC combinations would be more strict here,
but I think this complexity is not (yet) worth it.
This commit is contained in:
parent
06ae1cf95a
commit
39cb696fc4
|
@ -298,15 +298,7 @@ In ~%s~:
|
|||
(and
|
||||
;; Exclude DONE state tasks from refile targets (from bh)
|
||||
(not (member (nth 2 (org-heading-components))
|
||||
org-done-keywords))
|
||||
;; Exclude NOTE entries in `db/org-default-org-file', as those are project
|
||||
;; notes that should not have proper tasks as children (use links to connect
|
||||
;; those tasks to the project notes instead)
|
||||
(not (and (member "NOTE" (org-get-tags))
|
||||
(not (null (buffer-file-name)))
|
||||
(not (null db/org-default-org-file))
|
||||
(file-equal-p (buffer-file-name)
|
||||
db/org-default-org-file)))))
|
||||
org-done-keywords))))
|
||||
|
||||
|
||||
;;; Reset checklists
|
||||
|
|
Loading…
Reference in New Issue