alphapapa / alphapapa/org-ql

org-archive-subtree with ":action" works only the first heading

Aperta
#295 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub
discussion help wanted
Lingua principale
Emacs Lisp
Stelle
1.6k
Fork
120
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hello,

I'm trying to do the following: find the headings that have passed (no matter the conditions to find them, just make a query that returns two different headings to do the test)
Once these headings are found, I want to archive them. So I have a command that looks like this (with ":action"):

```
(org-ql-select (org-agenda-files)
'(and
(rifle "heading to test")
(scheduled :to today)
(ts-active :to today))
:action '(org-archive-subtree)
;; try this too, same result
;; :action #'org-archive-subtree
)
```

Unfortunately, only the first heading is archived, and I don't understand why.

Thanks in advance for your future answers

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.