From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin Beck" Subject: Org-agenda-sorting: can I sort by inactive timestamps? Date: Mon, 30 May 2016 14:27:01 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7MHk-0001Ei-AT for emacs-orgmode@gnu.org; Mon, 30 May 2016 08:27:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7MHf-00057E-4K for emacs-orgmode@gnu.org; Mon, 30 May 2016 08:27:07 -0400 Received: from mout.web.de ([212.227.15.4]:51617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7MHe-000578-Q9 for emacs-orgmode@gnu.org; Mon, 30 May 2016 08:27:03 -0400 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" To: emacs orgmode-mailinglist
I'm using inactive timestamps to show the creation date of a new heading and also to show the modification dates with some short text notes about the progress in there:
 
Example:
 
* Headings Test
<2016-05-30 Mo 13:18>
* Heading 1
[2016-05-30 Mo 13:21]
* Heading 2
[2016-05-30 Mo 13:16]
* Heading 3
[2016-05-30 Mo 13:16]
* TODO Find out about sorting by timestamp
[2016-05-30 Mo 13:12]
[2016-05-30 Mo 14:22]
posted question to org-mode users group
 
 
I tried the timestamp-up/timestamp-down sorting criteria in my agenda, but they seem to ignore the inactive timestamps:
("r" "Refile" tags "+refile+LEVEL=1"
      ((org-agenda-overriding-header "Refile")
       (org-agenda-sorting-strategy
    (quote
     (timestamp-up)))))
 
I also tried to use the table-view of the agenda, but in the column "timestamp" it only shows the active timestamp of the first heading.
 
Questions:
- is it possible to use inactive timestamps for sorting the agenda?
- what happens if I have several timestamps (active or inactive) in one heading? Will org-mode take the first/last one in the plain text "code" or the newest or oldest one by date?
Both could make sense to me, so it would be interesting to have both possibilities..
 
Kind regards
 
Martin
From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Org-agenda-sorting: can I sort by inactive timestamps? Date: Mon, 30 May 2016 09:53:42 -0500 Message-ID: <87eg8jd2bt.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7OZr-0002le-P5 for emacs-orgmode@gnu.org; Mon, 30 May 2016 10:54:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7OZm-0000Tw-P7 for emacs-orgmode@gnu.org; Mon, 30 May 2016 10:53:58 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:37601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7OZk-0000TY-FS for emacs-orgmode@gnu.org; Mon, 30 May 2016 10:53:54 -0400 In-Reply-To: (Martin Beck's message of "Mon, 30 May 2016 14:27:01 +0200") 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" To: Martin Beck Cc: emacs orgmode-mailinglist "Martin Beck" writes: > I'm using inactive timestamps to show the creation date of a new > heading and also to show the modification dates with some short text > notes about the progress in there: > > Example: > > * Headings Test > <2016-05-30 Mo 13:18> > * Heading 1 > [2016-05-30 Mo 13:21] > * Heading 2 > [2016-05-30 Mo 13:16] > * Heading 3 > [2016-05-30 Mo 13:16] > * TODO Find out about sorting by timestamp > [2016-05-30 Mo 13:12] > [2016-05-30 Mo 14:22] > posted question to org-mode users group > > > I tried the timestamp-up/timestamp-down sorting criteria in my agenda, > but they seem to ignore the inactive timestamps: > ("r" "Refile" tags "+refile+LEVEL=1" > ((org-agenda-overriding-header "Refile") > (org-agenda-sorting-strategy > (quote > (timestamp-up))))) > I also tried to use the table-view of the agenda, but in the column > "timestamp" it only shows the active timestamp of the first heading. > Questions: > - is it possible to use inactive timestamps for sorting the agenda? The timestamp-up here retrieves active timestamps. For inactive timestamps, you can use tsia-up. See the docstring (C-h v) for org-agenda-sorting-strategy: tsia-up Sort by inactive timestamp, early first tsia-down Sort by inactive timestamp, late first > - what happens if I have several timestamps (active or inactive) in > one heading? Will org-mode take the first/last one in the plain text > "code" or the newest or oldest one by date? With tsia-up or tsia-down, org will use the first inactive timestamp in the heading. For more details, see... http://orgmode.org/manual/Special-properties.html Matt