emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Modify sorting order of agenda (newest scheduled todos first)?
@ 2012-06-17 15:18 M
  2012-06-18  1:43 ` Bernt Hansen
  0 siblings, 1 reply; 2+ messages in thread
From: M @ 2012-06-17 15:18 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I want to change the sorting order in the agenda (the standard seems to be
that overdue items are sorted by date so that the oldest ones are shown
first) to get the items listed in the following order:

* as a first list:
todos with a deadline today or before today,
sorted by priority (descending), then sorted by due date, starting with
today and the oldest todo at the last position.

* then a blank line with "a customized text" in it

* then as a second list todos scheduled today or before today,
sorted by priority (descending) and then sorted by scheduled date, but the
newest ones first


e. g.

DEADLINE TODO [#A] re-configure org-mode
DEADLINE TODO [#B] read org-mode manual
in -3d   TODO [#B] do this
in -10d  TODO [#B] do that
a customized text
SCHEDULED TODO [#A] learn LISP
SCHEDULED TODO [#B] understand Emacs
SCHED.1x  TODO [#A] What I should have done yesterday
SCHED.1x  TODO [#B] What I might have done yesterday
SCHED.2x  TODO [#A] What I should have done the day before yesterday
...
SCHED.20x TODO [#A] What I should have done 20 days ago
SCHED.30x TODO [#A] What I should have done a month ago

IF there are examples for such a configuration of the agenda, please send me
a link. I did not find anything in the manual, but maybe I've overlooked it.

Kind regars

Martin

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Modify sorting order of agenda (newest scheduled todos first)?
  2012-06-17 15:18 Modify sorting order of agenda (newest scheduled todos first)? M
@ 2012-06-18  1:43 ` Bernt Hansen
  0 siblings, 0 replies; 2+ messages in thread
From: Bernt Hansen @ 2012-06-18  1:43 UTC (permalink / raw)
  To: M; +Cc: emacs-orgmode

M <Elwood151@web.de> writes:

> Hi,
>
> I want to change the sorting order in the agenda (the standard seems to be
> that overdue items are sorted by date so that the oldest ones are shown
> first) to get the items listed in the following order:
>
> * as a first list:
> todos with a deadline today or before today,
> sorted by priority (descending), then sorted by due date, starting with
> today and the oldest todo at the last position.
>
> * then a blank line with "a customized text" in it
>
> * then as a second list todos scheduled today or before today,
> sorted by priority (descending) and then sorted by scheduled date, but the
> newest ones first
>
>
> e. g.
>
> DEADLINE TODO [#A] re-configure org-mode
> DEADLINE TODO [#B] read org-mode manual
> in -3d   TODO [#B] do this
> in -10d  TODO [#B] do that
> a customized text
> SCHEDULED TODO [#A] learn LISP
> SCHEDULED TODO [#B] understand Emacs
> SCHED.1x  TODO [#A] What I should have done yesterday
> SCHED.1x  TODO [#B] What I might have done yesterday
> SCHED.2x  TODO [#A] What I should have done the day before yesterday
> ...
> SCHED.20x TODO [#A] What I should have done 20 days ago
> SCHED.30x TODO [#A] What I should have done a month ago
>
> IF there are examples for such a configuration of the agenda, please send me
> a link. I did not find anything in the manual, but maybe I've overlooked it.
>
> Kind regars
>
> Martin

Hi Martin,

I'm not sure if the "a customized text" is doable but I control the
order of everything displayed on my agenda with a bunch of custom
sorting functions which are described here:

http://doc.norang.ca/org-mode.html#AgendaViewTweaks

HTH.

Regards,
Bernt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-18  1:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-17 15:18 Modify sorting order of agenda (newest scheduled todos first)? M
2012-06-18  1:43 ` Bernt Hansen

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).