alphapapa / alphapapa/org-ql

How to ignore the file-tree structure in the results with org-ql-select?

オープン
#246 コメント 11 件 リアクション 0 件 担当者 1 名 @alphapapa が担当を希望しています GitHub で見る
docs
主要言語
Emacs Lisp
スター
1.6k
フォーク
120
PR マージ指標
30日以内にマージされた PR はありません

説明

Suppose you have this `test.org` file

``` org
#+TITLE: Test

#+begin_src emacs-lisp
(org-ql-select
nil
'(and (planning :from "2021-08-21" :to "2021-08-30")
(todo))
:action '(list (org-entry-get (point) "TODO")
(concat "[["
(substring-no-properties (org-get-heading t t))
"]]")
(org-entry-get (point) "DEADLINE"))
:sort '(deadline))
#+end_src

#+RESULTS:
| TODO | [[Task 1]] | <2021-08-23 Mon> |
| TODO | [[Task 2]] | <2021-08-27 Fri> |
| TODO | [[Task 3]] | <2021-08-24 Tue> |
| TODO | [[Task 4]] | <2021-08-23 Mon> |

* H1
** TODO Task 1
DEADLINE: <2021-08-23 Mon>
** TODO Task 2
DEADLINE: <2021-08-27 Fri>
* H2
** TODO Task 3
DEADLINE: <2021-08-24 Tue>
** TODO Task 4
DEADLINE: <2021-08-23 Mon>
```

According to the manual the results should be sorted by deadline, but in this case they are showing as appearance in the file. Notice how the deadline dates are completely mixed.

Did I make something wrong?

I'm in this commit 94f9e6f3031b32cf5e2149beca7074807235dcb0

Thanks for the help.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。