I often need to purge DONE items from my org files. I have set up a
special agenda view for checking those items and cutting some subtrees
from it using bulk commands. I'm using a function adapted from the
example in the manual (I've no idea if it's the best way to do it
however) : 

,----
| (defun bulk-cut ()
|   (interactive "P")
|   (let* ((marker (or (org-get-at-bol 'org-hd-marker)
|                    (org-agenda-error)))
|        (buffer (marker-buffer marker)))
|     (with-current-buffer buffer
|       (save-excursion
|       (save-restriction
|         (widen)
|         (goto-char marker)
|         (org-back-to-heading t)
|         (org-cut-subtree))))))
`----

Typing B f bulk-cut RET removes the selected items but it's a lot of
typing for a very useful action in my opinion.

Could it be added to the list of default bulk actions, with a "X" key
for example ?


Reply via email to