emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* custom agenda view not possible?
@ 2015-04-27  2:21 Traycer Bullet
  2015-04-27 11:36 ` Alan Schmitt
  2015-04-28  8:29 ` Sebastien Vauban
  0 siblings, 2 replies; 3+ messages in thread
From: Traycer Bullet @ 2015-04-27  2:21 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1399 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 1820 bytes --]

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

end of thread, other threads:[~2015-04-28  8:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-27  2:21 custom agenda view not possible? Traycer Bullet
2015-04-27 11:36 ` Alan Schmitt
2015-04-28  8:29 ` Sebastien Vauban

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