[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Is is possible to summarize contents of a task in the agenda hea
Re: [O] Is is possible to summarize contents of a task in the agenda headings?
Mon, 06 May 2019 10:09:59 +0200
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
I made some progress. I can generate agendas where each todo shows how
many sub-tasks it has:
< 3> Emacs: TODO [#0] show context of subtasks in agenda
< 1> Emacs: TODO [#0] fixate gnus structure
< 1> Emacs: TODO [#2] kungsgetens org-brain
< 11> Emacs: TODO [#3] emslaved (make initial repo)
The number inside the initial brackets < num > indicate number of open subtasks.
I'm also using org-super-agenda here.
This is the code, a little bit messy still.
#+BEGIN_SRC emacs-lisp :tangle yes
(setq numchilds (length
(--filter (eq 'todo it)
(let ((parsetree (org-element-parse-buffer
(org-element-map parsetree 'headline
(lambda (hl) (org-element-property
;;im not sure why the widen is needed, but otherwise agenda generating
'((agenda . " %i %-20:c%?-12t% s")
(timeline . " % s")
(todo . " %i <%3(jv-todoinfo)> %-20:c")
(tags . " %i %-12:c")
(search . " %i %-12:c"))
David Masterson <address@hidden> writes:
> <address@hidden> writes:
>> Thanks, I'm already using (setq org-agenda-todo-list-sublevels nil) and
>> org-super-agenda. Both reduce clutter which is good. OTOH I now lack
>> information about subtasks that has been removed from the agenda
>> view. It is this concern i would like to address.
> A bit of work, but, if you set a property name of (say) PARENT on each
> parent project and gave it the value of that parent project name, each
> child of the parent would pick up the property and then should show up
> in an :auto-property group under org-super-agenda-mode (I think). That
> might get a bit cluttered, though, if you're doing a deep hierarchy of
- Re: [O] Is is possible to summarize contents of a task in the agenda headings?,