Add: (org-ql-view--format-element) effort properties
Org uses the nested properties within the 'txt' property for effort-related computations. The contents of 'txt' itself are not used for anything (and is usually set to a string of the headline), so we do the same here.
This commit is contained in:
parent
c9370982bf
commit
ae202356b1
2 changed files with 19 additions and 0 deletions
|
|
@ -176,6 +176,20 @@ with keyword arg NOW in PLIST."
|
|||
(cl-loop while (re-search-forward org-heading-regexp nil t)
|
||||
sum 1)))))
|
||||
|
||||
(describe "Agenda"
|
||||
|
||||
(require 'org-agenda)
|
||||
|
||||
(it "Sets effort properties for formatted element"
|
||||
(let* ((element (car (org-ql-select org-ql-test-buffer '(effort 30))))
|
||||
(item (org-ql-view--format-element element)))
|
||||
(with-temp-buffer
|
||||
(goto-char (point-min))
|
||||
(insert item)
|
||||
(expect
|
||||
(org-agenda-compare-effort #'= 30.0)
|
||||
:to-equal t)))))
|
||||
|
||||
(describe "Caching"
|
||||
|
||||
(it "Clears value cache after buffer changes"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue