alphapapa / alphapapa/org-ql

todo-keywords sorting does not work

Open
#242 6 comments 0 reactions 1 assignee Claimed by @alphapapa View on GitHub
bug
Dominant language
Emacs Lisp
Stars
1.6k
Forks
120
PR merge metrics
No merged PRs in 30d

Description

I cannot get `org-ql-search` to sort my keywords by the `org-todo-keywords-1` sequence (as previously discussed in #217)

Here is my minimal repro case:
```org
#+TITLE: Org Ql Test
#+TODO: URGENT NEXT P2 P3 TODO WAIT | DONE
* P2 Item
* TODO Item
* NEXT Item
* WAIT Item
* P3 Item
* URGENT Item
* P2 Item
```

```elisp
(defun ta/org-ql/test ()
(interactive)
(org-ql-search "~/Dropbox/org/gtd/org-ql-test.org"
'(todo)
:sort '(todo)
:title "Test")
)
```

The screenshot below shows the generated org-ql buffer with the incorrect sorting, as well as the source org buffer and the value of `org-todo-keywords-1` of the org buffer.

![screen shot 2021-08-10 at 09 37 15 PM](https://user-images.githubusercontent.com/8238976/128925270-8e29a373-e8eb-4b92-9567-d3528a45bd9b.jpg)

org-ql 0.5.2
emacs 27.2
doom 3.0.0-alpha HEAD
MacOS 11.4 Darwin 20.5.0 arm64 ns

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.