alphapapa / alphapapa/org-ql

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

未關閉
#295 7 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
discussion help wanted
主要語言
Emacs Lisp
星號
1.6k
分支
120
PR 合併指標
30 天內沒有已合併 PR

描述

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

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。