开发者

How to display NEXT action items followed by TODO items in Agenda View

I want to configure a custom agenda view which displays NEXT items followed by TODO items. currently all the TODO items and NEXT items are mixed in the agenda view.

After going through the manual i came across the variable

org-agenda-custom-co开发者_高级运维mmands

which seems to do the job, but it seems like it can act on single TODO state of an item. How to configure the agend view to display NEXT items followed by TODO items.


You need to use the org-agend-sorting-strategy. Possibly todo-state-up should do the trick when NEXT is defined as a custom keyword, but I don't know that for sure. Otherwise a user-defined sort should do the trick.

This snippet from worg should be clearer:

(setq org-agenda-custom-commands 
      '(
      ("c" "Desk Work" tags-todo "" ;; (1) (2) (3) (4)
           ((org-agenda-files '("~/org/widgets.org" "~/org/clients.org")) ;; leave blank for configured default
           (org-agenda-sorting-strategy '(todo-state-down))) ;; fiddle with the setting here
         )
        ;; ...other commands here
        ))
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜