alphapapa / alphapapa/org-ql

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

Aberta
#295 7 comentários 0 reações 0 responsáveis Ver no GitHub
discussion help wanted
Linguagem predominante
Emacs Lisp
Estrelas
1.6k
Forks
120
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.