I have currently a very simple custom agenda view, which displays a daily view, important tasks (those tasks with priority A), and pending tasks (those tasks whose todo keyword is WAITING).
I would like to add another category in this agenda view, which would be the "quick picks", i.e. those tasks whose effort estimates are lower than 0:15.
Until now, I have only managed to filter the tasks whose effort estimates are exactly equal to 0:15, and I struggle to find an easy solution for all tasks inferior to 0:15.
Here is the piece of code I use:
(defun perso/quickpick (arg)
"Display entries that have effort estimate equal to ARG."
(org-tags-view t
(format "Effort=\"%s\"" arg)))
(setq org-agenda-custom-commands
'(("d" "Custom daily agenda"
((agenda "" ((org-agenda-span 'day)))
(tags "PRIORITY=\"A\""
((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done))
(org-agenda-overriding-header "Important tasks")))
(todo "WAITING"
((org-agenda-overriding-header "Pending tasks")))
(perso/quickpick "0:15"
((org-agenda-overriding-header "Quickies")))))))
Is there a simple solution to adapt perso/quickpick
and/or org-agenda-custom-commands
to get what I want?
Thanks!
Addendum: A MWE org file with one item per category:
#+PROPERTY: Effort_ALL 0:05 0:10 0:15 0:20 0:30 0:45 1:00 1:30 2:00 3:00
* TODO Wash the car
SCHEDULED: <2020-07-01>
* WAITING Fix a bug
* TODO A quick task
:PROPERTIES:
:Effort: 0:15
:END:
* TODO [#A] An important task
org-tags-view
inperso/quickpick
to use"Effort<=%f"
?0.15
?(format "Effort<=%f" arg)
and(perso/quickpick 0.15
(etc.). All TODO items were displayed in the "Quickies" section, so it did not work. (But this is a central part of the question: I don't know how to treat effort estimates as floats, since they are basically [duration-]strings.) Maybe an additional precision: my effort estimates are set with#+PROPERTY: Effort_ALL 0:05 0:10 0:15 0:20 0:30 0:45 1:00 1:30 2:00 3:00
.