emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Problems with org-agenda-sort-strategy and todo-state
Date: Tue, 26 Jul 2011 17:52:41 -0500	[thread overview]
Message-ID: <CA+M2ft9YnX8qkYw-7gXGBZ4pRwE3za-cOuBD4LGoPw5kdmo8Ow@mail.gmail.com> (raw)

I'm setting up an agenda block view via help from norang.ca, the
manual, and worg on the matters and have come up with something like
so:

----------
(setq org-agenda-custom-commands
    '(("w" "Agenda"
        ((agenda "" ((org-agenda-ndays 7)))

         (todo "next"
            ((org-agenda-overriding-header "Next Actions")))

         (tags-todo "proj-name-1"
            ((org-agenda-overriding-header "Project Name 1"))
             (org-agenda-sorting-strategy
                 '(todo-state-down)))

         (tags-todo "proj-name-2"
            ((org-agenda-overriding-header "Project Name 2"))
             (org-agenda-sorting-strategy
                 '(todo-state-down)))
))))
----------

I have actionable todo states set as "todo" and "proj." I get
something like this in the block view:

----------
Proj-Name-1
  proj-name-1:      proj Something 1
  proj-name-1:      todo [2/4] Something 2
  proj-name-1:      proj Something 3
  proj-name-1:      todo Something 4
----------

I thought setting the todo-state-down sort strategy would group proj
together and todo together... is that not the case?

I note that the help for the variable org-agenda-sort-strategy says
that done goes last/first depending on up or down... does that mean it
*only* differentiates between open todos (regardless of custom types)
and done? If there are suggestions of how to get the proj at the top
and todos at the bottom, that would be great.


Thanks,
John

                 reply	other threads:[~2011-07-26 22:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+M2ft9YnX8qkYw-7gXGBZ4pRwE3za-cOuBD4LGoPw5kdmo8Ow@mail.gmail.com \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).