Great way of doing it.

Another option is to create a new buffer and sort the headers by the
weight.  Ideally each header in the new buffer would be a link.

Yet another is to use the agenda.  I think it might have a new format
string option for the weight.  Then use the agenda to sort.

And another possibility is to gather weights recursively vs. for each
header.  This works for bytes.


P.S.  Code from years ago.  Might or might not work.

(defun* alpha-org-dus-tree (&optional same (n 10))
  "Show the biggest subtrees in agenda files.  SAME says whether
to measure each node vs. each subtree."
  ;;(with-current-buffer ...
  (switch-to-buffer "*alpha-org-dus-tree*")
;;;  (cl-prettyprint
   (subseq (sort* (alpha-org-dus-tree-1 same)
                  :key #'car)
(defun alpha-org-dus-tree-1 (same)
  (org-map-entries #'(lambda ()
                       ;;(message "doing %s"
                       (cons (alpha-org-get-size same)
(defun alpha-org-get-size (&optional same)
  (- (save-excursion
         (funcall (if same
                      ;;org-end-of-subtree t t

The Kafka Pandemic:

Reply via email to