From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subhan Michael Tindall Subject: Limiting number of items shown in custom agenda Date: Tue, 3 Feb 2015 19:13:04 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_bc2f69370d2a4d3cb586e47a97d4c7bafcmailsvr3familycareinc_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIiuN-0001uZ-1N for emacs-orgmode@gnu.org; Tue, 03 Feb 2015 14:13:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIiuJ-0007Bo-LW for emacs-orgmode@gnu.org; Tue, 03 Feb 2015 14:13:10 -0500 Received: from outbound.familycareinc.org ([207.170.205.147]:59569) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIiuJ-0007BX-9b for emacs-orgmode@gnu.org; Tue, 03 Feb 2015 14:13:07 -0500 Content-Language: en-US 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" --_000_bc2f69370d2a4d3cb586e47a97d4c7bafcmailsvr3familycareinc_ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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-d= own))))))) 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 wor= ked 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 w= hich it is addressed and may contain information that is privileged, confid= ential and exempt from disclosure under applicable law. If you are not the = intended addressee, nor authorized to receive for the intended addressee, y= ou are hereby notified that you may not use, copy, disclose or distribute t= o anyone the message or any information contained in the message. If you ha= ve received this message in error, please immediately advise the sender by = reply email and delete the message. Thank you. --_000_bc2f69370d2a4d3cb586e47a97d4c7bafcmailsvr3familycareinc_ Content-Type: text/html; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable

I have the following custom agenda command

("Z" "Last Worked skip" ((alltod= o "" ((org-agenda-skip-function

(lambda nil (org-agenda-s= kip-entry-if (quote notregexp) "\\:LastWorked\\:")))

        &nbs= p;       (org-agenda-sticky nil)

        &nbs= p;       (org-agenda-view-columns-initially t= )

        &nbs= p;       (org-agenda-sorting-strategy (quote = (tsia-down todo-state-down)))))))

 

Each item worked has a property that is automaticall= y set to the last time it was worked (:LastWorkedJ

 

As-is, this works OK, and shows all non-closed headl= ines 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, co= nfidential and exempt from disclosure under applicable law. If you are not = the intended addressee, nor authorized to receive for the intended addresse= e, you are hereby notified that you may not use, copy, disclose or distribu= te to anyone the message or any information contained in the message. If yo= u have received this message in error, please immediately advise the sender= by reply email and delete the message.  Thank you. --_000_bc2f69370d2a4d3cb586e47a97d4c7bafcmailsvr3familycareinc_--