emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Martin Beck <elwood151@web.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: (no subject) How to sort agenda by timestamps (scheduled/deadline)?
Date: Wed, 30 Jan 2013 20:11:29 -0500	[thread overview]
Message-ID: <87a9rqyx4u.fsf@norang.ca> (raw)
In-Reply-To: loom.20130130T131920-133@post.gmane.org

Martin Beck <elwood151@web.de> writes:

> Bernt Hansen <bernt <at> norang.ca> writes:
>
>> 
>> "Martin Beck" <elwood151 <at> web.de> writes:
>> 
>> > I'm trying to create a custom agenda setup for my org-mode and I wonder how
> I can sort the agenda-items by
>> date (Scheduled
>> > or deadline): newest first.
>> >
>> > I only found time-up / time-down in the parameters, but that does not seem
> to do what I need.
>> > ...
>> 
>> Hi Martin,
>> 
>> I sort my daily agenda items specifically using a bunch of complicated
>> sorting functions.  They are all documented here:
>> 
>> http://doc.norang.ca/org-mode.html#AgendaViewTweaks
>> 
>> HTH,
>> Bernt
>> 
>> 
>
> Hi Bernt,
>
> thanks a lot - I'm already working with your setup and currently struggling to
> adapt it to my needs, but my elisp/emacs/org-mode knowledge is still too limited.
>
> Is it true that "time-up" only sorts items which really have a time
> (hours/minutes) defined, so it does not also sort everything with
> date-timestamps by date?

Hi Martin,

From 

,----[ C-h v org-agenda-sorting-strategy ]
| time-up            Put entries with time-of-day indications first, early first
| time-down          Put entries with time-of-day indications first, late first
`----

time-up should sort items with a date stamp and time with earlier times
first followed by later times.  time-down is the opposite.  I don't
think this has anything to do with durations.  Yes it only seems to
affect entries with a time component.  On today's daily agenda if I set
org-agenda-sorting-strategy to only be time-up then the grid is at the
to of the agenda followed by all of the other entries.  Any entries with
a time are interspersed in the grid.

With time-down the grid is in reverse at the bottom of the agenda.

>
> I tried to modify your Block Agenda by inserting the following block:
>
> (tags-todo "PRIORITY=\"A\"" (
> 		(org-agenda-overriding-header "Critical")
> 		(org-agenda-entry-types '(:deadline))
> 		(org-agenda-sorting-strategy (quote (time-up category-keep)))
> 		(org-agenda-todo-ignore-scheduled 'future)
> 		(org-agenda-todo-ignore-deadlines 'future)
> 		))
>
> But unfortunately, it does only display category, TODO-keyword and subject, but
> NO information about Deadline or Scheduled date.
>
> Ho could I insert this additional "column" in the agenda view?

I can't make it work in the block agenda but as a standalone agenda does
this help?

--8<---------------cut here---------------start------------->8---
	      ("x" "test" tags-todo "PRIORITY=\"A\"" 
	       ((org-agenda-overriding-header "Critical")
		(org-agenda-entry-types '(:deadline))
		(org-columns-default-format "%10CATEGORY(Category) %60ITEM(Task) %15DEADLINE(Deadline) %15SCHEDULED(Scheduled)")
		(org-agenda-view-columns-initially t)
		(org-agenda-sorting-strategy (quote (time-up category-keep)))
		(org-agenda-todo-ignore-scheduled 'future)
		(org-agenda-todo-ignore-deadlines 'future)))
--8<---------------cut here---------------end--------------->8---

This starts the agenda in column mode and shows category, task,
deadline, scheduled dates.

'q' exits column mode.

In the block agenda if you turn on column mode with C-c C-x C-c you get
the same information for all tasks in the agenda

It's probably not exactly what you were looking for...

Regards,
Bernt

  reply	other threads:[~2013-01-31  1:11 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-29  9:43 (no subject) Martin Beck
2013-01-30  8:23 ` (no subject) How to sort agenda by timestamps (scheduled/deadline)? Martin Beck
2013-01-30 10:31 ` Sorting by scheduled-up/down (was: (no subject)) Bastien
2013-01-30 12:12 ` (no subject) Bernt Hansen
2013-01-30 12:25   ` (no subject) How to sort agenda by timestamps (scheduled/deadline)? Martin Beck
2013-01-31  1:11     ` Bernt Hansen [this message]
2013-01-31 10:01       ` Martin Beck
2013-02-01 12:02         ` Bernt Hansen
2013-02-01 15:43           ` Sebastien Vauban
2013-02-01 15:55             ` Sebastien Vauban
2013-02-02 16:57               ` Bernt Hansen
2013-02-07  8:21           ` Bastien
2013-02-22 23:25             ` Martin
2013-02-23  8:00               ` Bastien
2013-03-12 16:00                 ` Martin
2013-03-13  8:55                   ` Bastien
2013-03-13  9:26                     ` Martin
2013-03-13  9:30                       ` Bastien
2013-03-13 10:47                         ` Martin
2013-03-13 11:52                           ` Bastien
2013-03-13 12:41                             ` Martin
2013-03-13 13:01                               ` Bastien
2013-03-13 13:51                                 ` Martin
2013-03-13 23:23                                   ` Robert Eckl
2013-01-31 10:04       ` Martin Beck
2013-02-01 12:04         ` Bernt Hansen
2013-02-01 13:23           ` Martin Beck
2013-02-02  0:31             ` Eric S Fraga
2013-02-02 17:04             ` Bernt Hansen

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=87a9rqyx4u.fsf@norang.ca \
    --to=bernt@norang.ca \
    --cc=elwood151@web.de \
    --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).