emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Manish <mailtomanish.sharma@gmail.com>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: Sorting agenda items
Date: Fri, 18 Apr 2008 18:02:14 +0200	[thread overview]
Message-ID: <1AB9803A-7FDC-47C9-B907-86DE238BA1EB@science.uva.nl> (raw)
In-Reply-To: <e7cdbe30804171329n2fad29a8p63992980b46dde0f@mail.gmail.com>


On Apr 17, 2008, at 10:29 PM, Manish wrote:

> Hello All,
>
>  I would like to set up a daily agenda view with todos sorted in the
> following order:
>
>  1. Timed TODOs
>  2. DEADLINES
>  3. TODO type - STARTED
>  4. TODO type - NEXT
>  5. TODO type - TODO
>
>  I could find/figure out how to do #1 and #2 but #3-5 escape me.  I
> hope I did not miss it in the manual.


You cannot sort tasks in an agenda view according to TODO type,
but you can make a block agenda that extracts the different task
types one by one.

For example

(setq org-agenda-custom-commands
    '(("A" "Task types"
       ((agenda "" nil)
       (todo "STARTED" nil)
       (todo "NEXT" nil)
       (todo "TODO" nil))
       nil nil)))

sets up a view that contains

1. The agenda, which includes scheduled and deadline stuff.
2. All STARTED entries
3. All NEXT entries
4. All TODO entries


The other posiility, if you want to reduce the amount of stuff you  
look at, is to make
separate commands for each of these

(setq org-agenda-custom-commands
    '(("A" . "Tasks")
      ("Aa" "My agenda" agenda "" nil)
      ("As" "STARTED Stuff" todo "STARTED" nil)
      ("An" "NEXT Actions" todo "NEXT" nil)
      ("At" "TODO Items" todo "TODO" nil)))

HTH

- Carsten

  parent reply	other threads:[~2008-04-18 16:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-17 20:29 Sorting agenda items Manish
2008-04-18  7:06 ` Manish
2008-04-18 16:02 ` Carsten Dominik [this message]
2008-04-19  8:43   ` Manish
2008-04-23 12:59     ` Carsten Dominik

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=1AB9803A-7FDC-47C9-B907-86DE238BA1EB@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=mailtomanish.sharma@gmail.com \
    /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).