Re: org-agenda todos list sorted by earliest deadline first
Sébastien Gendre writes: > The only option I have to set is: > ``` > (setq org-agenda-sorting-strategy '((agenda deadline-down time-up habit-up > priority-down timestamp-down category-keep) > (todo deadline-up priority-down > category-keep) > (tags priority-down category-keep) > (search category-keep))) > ``` > > Do the `deadline-up` option will apply to all todo lists in the agenda ? > Even the ones in custom views ? Yes. (setq org-agenda-sorting-strategy ...) is global setting. However, you can also set it locally inside custom agenda command if you wish. See the docstring of org-agenda-custom-commands: >> settings A list of option settings, similar to that in a let form, so like >> this: ((opt1 val1) (opt2 val2) ...). The values will be >> evaluated at the moment of execution, so quote them when needed. optN can be org-agenda-sort-strategy. Best, Ihor
Re: org-agenda todos list sorted by earliest deadline first
So, I updated to Org-mode 9.5.3 from ELPA and the problem is gone. Now, I get the tasks in the agenda in the correct order: Earliest deadlines firsts, on top of the tasks list, then the tasks without deadlines. The only option I have to set is: ``` (setq org-agenda-sorting-strategy '((agenda deadline-down time-up habit-up priority-down timestamp-down category-keep) (todo deadline-up priority-down category-keep) (tags priority-down category-keep) (search category-keep))) ``` Do the `deadline-up` option will apply to all todo lists in the agenda ? Even the ones in custom views ? Ihor Radchenko writes: > Sébastien Gendre writes: > >> If I evaluate the same setq and define the same tasks, my result withe >> org-agenda tasks list are: >> >> Global list of TODO items of type: ALL >> Press ‘N r’ (e.g. ‘0 r’) to search again: (0)[A$ >> (1)TODO (2)DONE >> test: TODO test1 >> test: TODO test2 >> test: TODO test3 >> test: TODO test4 >> >> I tested at this moment with Org version 9.5.2 on Emacs version 27.2 > > I am unable to reproduce using Emacs 27.2 + latest Org main or bugfix. > Can you try to reproduce starting from emacs -Q? > See https://orgmode.org/manual/Feedback.html or > https://open.tube/videos/watch/4d819114-43bf-42df-af94-f94fc53dd0d9 for > detailed instructions. > > Best, > Ihor
Re: org-agenda todos list sorted by earliest deadline first
Tested with "emacs -q", I got the same result. Le 5 avril 2022 09:14:43 GMT+02:00, Ihor Radchenko a écrit : >Sébastien Gendre writes: > >> If I evaluate the same setq and define the same tasks, my result withe >> org-agenda tasks list are: >> >> Global list of TODO items of type: ALL >> Press ‘N r’ (e.g. ‘0 r’) to search again: (0)[A$ >> (1)TODO (2)DONE >> test: TODO test1 >> test: TODO test2 >> test: TODO test3 >> test: TODO test4 >> >> I tested at this moment with Org version 9.5.2 on Emacs version 27.2 > >I am unable to reproduce using Emacs 27.2 + latest Org main or bugfix. >Can you try to reproduce starting from emacs -Q? >See https://orgmode.org/manual/Feedback.html or >https://open.tube/videos/watch/4d819114-43bf-42df-af94-f94fc53dd0d9 for >detailed instructions. > >Best, >Ihor
Re: org-agenda todos list sorted by earliest deadline first
Sébastien Gendre writes: > If I evaluate the same setq and define the same tasks, my result withe > org-agenda tasks list are: > > Global list of TODO items of type: ALL > Press ‘N r’ (e.g. ‘0 r’) to search again: (0)[A$ > (1)TODO (2)DONE > test: TODO test1 > test: TODO test2 > test: TODO test3 > test: TODO test4 > > I tested at this moment with Org version 9.5.2 on Emacs version 27.2 I am unable to reproduce using Emacs 27.2 + latest Org main or bugfix. Can you try to reproduce starting from emacs -Q? See https://orgmode.org/manual/Feedback.html or https://open.tube/videos/watch/4d819114-43bf-42df-af94-f94fc53dd0d9 for detailed instructions. Best, Ihor
Re: org-agenda todos list sorted by earliest deadline first
If I evaluate the same setq and define the same tasks, my result withe org-agenda tasks list are: Global list of TODO items of type: ALL Press ‘N r’ (e.g. ‘0 r’) to search again: (0)[A$ (1)TODO (2)DONE test: TODO test1 test: TODO test2 test: TODO test3 test: TODO test4 I tested at this moment with Org version 9.5.2 on Emacs version 27.2 Le 5 avril 2022 07:44:25 GMT+02:00, Ihor Radchenko a écrit : >Sébastien Gendre writes: > >> I've tested it, but the tasks with no deadlines are still on top of the list. > >I am unable to reproduce on my side using latest stable Org. >I used the following example org file: > > >* TODO test1 >* TODO test2 >* TODO test3 >DEADLINE: <2022-04-04 Mon> >* TODO test4 >DEADLINE: <2022-04-06 Wed> >-- > >(setq org-agenda-sorting-strategy '((agenda deadline-down time-up habit-up >priority-down timestamp-down category-keep) > (todo deadline-up priority-down > category-keep) > (tags priority-down category-keep) > (search category-keep))) > >The todo agenda buffer looks like: > >Global list of TODO items of type: ALL >Press ‘N r’ (e.g. ‘0 r’) to search again: (0)[ALL] (1)TODO (2)DONE > bug:TODO test3 > bug:TODO test4 > bug:TODO test1 > bug:TODO test2 > > >Best, >Ihor
Re: org-agenda todos list sorted by earliest deadline first
Sébastien Gendre writes: > I've tested it, but the tasks with no deadlines are still on top of the list. I am unable to reproduce on my side using latest stable Org. I used the following example org file: * TODO test1 * TODO test2 * TODO test3 DEADLINE: <2022-04-04 Mon> * TODO test4 DEADLINE: <2022-04-06 Wed> -- (setq org-agenda-sorting-strategy '((agenda deadline-down time-up habit-up priority-down timestamp-down category-keep) (todo deadline-up priority-down category-keep) (tags priority-down category-keep) (search category-keep))) The todo agenda buffer looks like: Global list of TODO items of type: ALL Press ‘N r’ (e.g. ‘0 r’) to search again: (0)[ALL] (1)TODO (2)DONE bug:TODO test3 bug:TODO test4 bug:TODO test1 bug:TODO test2 Best, Ihor
Re: org-agenda todos list sorted by earliest deadline first
I've done it, but tasks with no deadlines are still on top of the list Le 4 avril 2022 13:42:26 GMT+02:00, Ihor Radchenko a écrit : >Sébastien Gendre writes: > >> My Emacs version is 27.2 and Org is 9.4.4. >> >> The value of "org-agenda-sorting-strategy" is: >> >> ((agenda habit-down time-up priority-down category-keep) >> (todo priority-down category-keep deadline-up) >> (tags priority-down category-keep deadline-up) >> (search category-keep)) > >Try to move deadline-up to beginning of the lists: > >((agenda habit-down time-up priority-down category-keep) > (todo deadline-up priority-down category-keep) > (tags deadline-up priority-down category-keep) > (search category-keep)) > >Best, >Ihor
Re: org-agenda todos list sorted by earliest deadline first
I've tested it, but the tasks with no deadlines are still on top of the list. Le 4 avril 2022 13:42:26 GMT+02:00, Ihor Radchenko a écrit : >Sébastien Gendre writes: > >> My Emacs version is 27.2 and Org is 9.4.4. >> >> The value of "org-agenda-sorting-strategy" is: >> >> ((agenda habit-down time-up priority-down category-keep) >> (todo priority-down category-keep deadline-up) >> (tags priority-down category-keep deadline-up) >> (search category-keep)) > >Try to move deadline-up to beginning of the lists: > >((agenda habit-down time-up priority-down category-keep) > (todo deadline-up priority-down category-keep) > (tags deadline-up priority-down category-keep) > (search category-keep)) > >Best, >Ihor
Re: org-agenda todos list sorted by earliest deadline first
Sébastien Gendre writes: > My Emacs version is 27.2 and Org is 9.4.4. > > The value of "org-agenda-sorting-strategy" is: > > ((agenda habit-down time-up priority-down category-keep) > (todo priority-down category-keep deadline-up) > (tags priority-down category-keep deadline-up) > (search category-keep)) Try to move deadline-up to beginning of the lists: ((agenda habit-down time-up priority-down category-keep) (todo deadline-up priority-down category-keep) (tags deadline-up priority-down category-keep) (search category-keep)) Best, Ihor
Re: org-agenda todos list sorted by earliest deadline first
My Emacs version is 27.2 and Org is 9.4.4. The value of "org-agenda-sorting-strategy" is: ((agenda habit-down time-up priority-down category-keep) (todo priority-down category-keep deadline-up) (tags priority-down category-keep deadline-up) (search category-keep)) Le 2 avril 2022 23:16:23 GMT+02:00, Samuel Wales a écrit : >perhaps try including your code and the emacs and org versins. i >think there have been recentish changes insorting strategy. > >might also try paradoxically deadline-down etc. > >On 4/2/22, Sébastien Gendre wrote: >> Hello. >> >> In org-agenda, for the todos list, I try to have tasks with deadlines at >> top. With earliest deadline first. >> >> But, when I customize the variable "org-agenda-sorting-strategy" by adding >> "deadline-up" for "todo" and "tags", it has no effect. >> >> Any advice ? > > >-- >The Kafka Pandemic > >A blog about science, health, human rights, and misopathy: >https://thekafkapandemic.blogspot.com
Re: org-agenda todos list sorted by earliest deadline first
perhaps try including your code and the emacs and org versins. i think there have been recentish changes insorting strategy. might also try paradoxically deadline-down etc. On 4/2/22, Sébastien Gendre wrote: > Hello. > > In org-agenda, for the todos list, I try to have tasks with deadlines at > top. With earliest deadline first. > > But, when I customize the variable "org-agenda-sorting-strategy" by adding > "deadline-up" for "todo" and "tags", it has no effect. > > Any advice ? -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com
org-agenda todos list sorted by earliest deadline first
Hello. In org-agenda, for the todos list, I try to have tasks with deadlines at top. With earliest deadline first. But, when I customize the variable "org-agenda-sorting-strategy" by adding "deadline-up" for "todo" and "tags", it has no effect. Any advice ?