From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Beck Subject: Re: (no subject) How to sort agenda by timestamps (scheduled/deadline)? Date: Thu, 31 Jan 2013 10:01:31 +0000 (UTC) Message-ID: References: <87boc6euoy.fsf@norang.ca> <87a9rqyx4u.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0qxr-0006df-31 for emacs-orgmode@gnu.org; Thu, 31 Jan 2013 05:01:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0qxp-0004kZ-Nm for emacs-orgmode@gnu.org; Thu, 31 Jan 2013 05:01:51 -0500 Received: from plane.gmane.org ([80.91.229.3]:50734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0qxp-0004kR-H3 for emacs-orgmode@gnu.org; Thu, 31 Jan 2013 05:01:49 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U0qy4-0002lG-4m for emacs-orgmode@gnu.org; Thu, 31 Jan 2013 11:02:06 +0100 Received: from mail.polytec.de ([213.144.13.178]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Jan 2013 11:02:04 +0100 Received: from elwood151 by mail.polytec.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Jan 2013 11:02:04 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Bernt Hansen norang.ca> writes: > > > > 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 > > Hi Bernt, thanks for your help - so if you can not make it work, I assume that it's not possible yet? I tried your code - it does what it promises.. however, you're right, it's not yet what I need: I'd need Priority A and B in one view (table), then sorted * Prio A first * Prio B second lines sorted by date descending (newest first) .. would that be possible? If I understand the problem right, I can get the deadline/scheduled information in the agenda only with the "agenda" commmand, not with tags-todo or anything else? This is a pity. So theoretically, I'd have to use this agenda command and then tweak the sorting function to arrange items by Prio first and then by date? (That's what I tried already, based on your setup, but I was not able to make it work yet..) Kind regards Martin