0

I have defined some custom todos keywords with

(setq org-todo-keywords
      '((sequence "TODO" "TODAY" "IN-PROGRESS" "WAITING" "URGENT" "FUTURE" "MAYBE" "LATER" "DONE")))

And when I invoke C-c a t I see the following:

enter image description here

I would like the todos to appear in the following order: "URGENT" "TODAY" "IN-PROGRESS" "TODO" "WAITING" "FUTURE" "MAYBE" "LATER" "DONE" and then, within each distinct label, having the todos sorted by priority.

I have tried many approaches, especially the one described here, but nothing works for me.

How can I achieve the desired behavior?

5
  • Do you want this sorting within each category (today, learning, free_time)? Or across all the categories (IOW sort all the URGENTs and then within the URGENTs sort by category)?
    – NickD
    Oct 13, 2020 at 22:36
  • I would actually like to learn how to code the different options. But the one that I will use will be: first sorting by tag (custom sorting), then by categories ("URGENT" > "TODAY" > ...) and finally, within each category, by priority (#A, #B, ...)
    – Nisba
    Oct 14, 2020 at 13:43
  • Just to clarify: the categories shown in your example are "today", "learning" and "free_time"; the todo entry tags are "URGENT, ..."DONE". So all the URGENTs for all categories/priorities are together first, then all the "TODAY"s etc. Within the URGENT group, first all the "today" entries, then all the "learrning" entries, (BTW, how is this order determined? above it seems reverse-alphabetically by category name, but you hate not specified). Then within each category (all the "today" entries within the URGENT group), sort by priority - correct?
    – NickD
    Oct 14, 2020 at 14:04
  • Correct! With only one difference, I would prefer the entries (within the same entry tag value (TODO... DONE)), to be first sorted by tag priority (#A, #B, ...) and then by category. I don't know in this case what is determining the order of the categories, but it would be cool if it could be specified.
    – Nisba
    Oct 14, 2020 at 15:56
  • 1
    So first by todo state, second by prioriry and third by category. Now it only remains to find somebody to implement it :-) I might be able to take a look in the next couple of weeks but no promises.
    – NickD
    Oct 14, 2020 at 16:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.