emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Limiting number of items shown in custom agenda
@ 2015-02-03 19:13 Subhan Michael Tindall
  2015-02-03 20:03 ` Nick Dokos
  2015-02-03 20:04 ` Yuri Niyazov
  0 siblings, 2 replies; 3+ messages in thread
From: Subhan Michael Tindall @ 2015-02-03 19:13 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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

I have the following custom agenda command
("Z" "Last Worked skip" ((alltodo "" ((org-agenda-skip-function
(lambda nil (org-agenda-skip-entry-if (quote notregexp) "\\:LastWorked\\:")))
                (org-agenda-sticky nil)
                (org-agenda-view-columns-initially t)
                (org-agenda-sorting-strategy (quote (tsia-down todo-state-down)))))))

Each item worked has a property that is automatically set to the last time it was worked (:LastWorked:)

As-is, this works OK, and shows all non-closed headlines with a :LastWorked: property

What I'd like to do is limit this to only show say the 10 most recently worked items.
Can't seem to find a way to do this.
Any ideas? This limit needs to happen after the sort.


This message is intended for the sole use of the individual and entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message.  Thank you.

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

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

end of thread, other threads:[~2015-02-03 20:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-03 19:13 Limiting number of items shown in custom agenda Subhan Michael Tindall
2015-02-03 20:03 ` Nick Dokos
2015-02-03 20:04 ` Yuri Niyazov

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