From mboxrd@z Thu Jan 1 00:00:00 1970 From: Traycer Bullet Subject: custom agenda view not possible? Date: Sun, 26 Apr 2015 19:21:19 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113d1dc628216a0514ab6972 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmYgM-0005Uz-77 for emacs-orgmode@gnu.org; Sun, 26 Apr 2015 22:22:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmYgK-0001od-Ru for emacs-orgmode@gnu.org; Sun, 26 Apr 2015 22:22:02 -0400 Received: from mail-ob0-x231.google.com ([2607:f8b0:4003:c01::231]:34524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmYgK-0001oN-Kh for emacs-orgmode@gnu.org; Sun, 26 Apr 2015 22:22:00 -0400 Received: by obfe9 with SMTP id e9so73526364obf.1 for ; Sun, 26 Apr 2015 19:21:59 -0700 (PDT) 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 --001a113d1dc628216a0514ab6972 Content-Type: text/plain; charset=UTF-8 I'm transitioning from a web-based to-do list, and one thing I rely on is viewing recently CREATED or CLOSED tasks, e.g. within the last 2 days. My hope is to recreate this with a custom agenda view, but I haven't been able to find the correct commands/filters. Keeping in mind I'm new to Emacs/Lisp/OrgMode, here's what I've tried so far (for just the CLOSED example): This doesn't work because tags-todo excludes 'DONE' status tasks: (add-to-list 'org-agenda-custom-commands '("J" "Completed Recently" tags-todo "CLOSED>=\"<-2d>\"")) This doesn't work because the org-agenda-tag-filter-preset only works for tags: (add-to-list 'org-agenda-custom-commands '("J" "Completed Recently" todo "DONE" ((org-agenda-tag-filter-preset '("+CLOSED>=\"<-2d>\""))))) Regarding the desired CREATED agenda view, I use a script to add a CREATED timestamp as property to each task (see: http://stackoverflow.com/questions/12262220/add-created-date-property-to-todos-in-org-mode ), so a task will look something like this: TODO New task for today :PROPERTIES: :CREATED: [2015-04-13 Mon 17:57] :END: There is no agenda filtering preset options for Properties (only tags/category/regexp), which is the only way I could think of to do the necessary date comparisons (e.g. <-2d>). The task seems simple, so I'm hopeful I'm overlooking some way of accomplishing it. --001a113d1dc628216a0514ab6972 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I'm transitioning from a web-based to-do list, and= one thing I rely on is viewing recently CREATED or CLOSED tasks, e.g. with= in the last 2 days.=C2=A0 My hope is to recreate this with a custom agenda = view, but I haven't been able to find the correct commands/filters.=C2= =A0 Keeping in mind I'm new to Emacs/Lisp/OrgMode, here's what I= 9;ve tried so far (for just the CLOSED example):

This doesn't wo= rk because tags-todo excludes 'DONE' status tasks:
(add-to-list = 'org-agenda-custom-commands
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 '("J" "Completed Recen= tly" tags-todo "CLOSED>=3D\"<-2d>\""))
This doesn't work because the org-agenda-tag-filter-preset only wo= rks for tags:
(add-to-list 'org-agenda-custom-commands
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 '("J&quo= t; "Completed Recently" todo "DONE"
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ((org-agend= a-tag-filter-preset '("+CLOSED>=3D\"<-2d>\"&quo= t;)))))

Regarding the desired CREATED agenda view, I use a script to= add a CREATED timestamp as property to each task (see: http://stackoverflow.com/questions/12262220/add-created-date-prope= rty-to-todos-in-org-mode ), so a task will look something like this:
TODO=C2=A0 New task for today
=C2=A0 :PROPERTIES:
=C2=A0 :CREATE= D:=C2=A0 [2015-04-13 Mon 17:57]
=C2=A0 :END:

There is no agenda f= iltering preset options for Properties (only tags/category/regexp), which i= s the only way I could think of to do the necessary date comparisons (e.g. = <-2d>).

The task seems simple, so I'm hopeful I'm over= looking some way of accomplishing it.=C2=A0=C2=A0
--001a113d1dc628216a0514ab6972--