From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuri Niyazov Subject: Re: Limiting number of items shown in custom agenda Date: Tue, 3 Feb 2015 12:04:04 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c236866aa12e050e3494ee Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIji9-0001ok-5k for emacs-orgmode@gnu.org; Tue, 03 Feb 2015 15:04:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIji8-0006Wp-21 for emacs-orgmode@gnu.org; Tue, 03 Feb 2015 15:04:37 -0500 Received: from mail-lb0-x232.google.com ([2a00:1450:4010:c04::232]:55704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIji7-0006VW-M2 for emacs-orgmode@gnu.org; Tue, 03 Feb 2015 15:04:35 -0500 Received: by mail-lb0-f178.google.com with SMTP id u10so40647522lbd.9 for ; Tue, 03 Feb 2015 12:04:34 -0800 (PST) In-Reply-To: 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: Subhan Michael Tindall Cc: "emacs-orgmode@gnu.org" --001a11c236866aa12e050e3494ee Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable does org-agenda-max-entries not work? On Tue, Feb 3, 2015 at 11:13 AM, Subhan Michael Tindall < SubhanT@familycareinc.org> wrote: > 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 tim= e > it was worked (:LastWorkedJ > > > > As-is, this works OK, and shows all non-closed headlines with a > :LastWorked: property > > > > What I=E2=80=99d like to do is limit this to only show say the 10 most re= cently > worked items. > > Can=E2=80=99t 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 o= r > 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. > --001a11c236866aa12e050e3494ee Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
does org-agenda-max-entries not work?

On Tue, Feb 3, 2015 at 11:13 AM,= Subhan Michael Tindall <SubhanT@familycareinc.org> = wrote:

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\\:")))

=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=C2=A0=C2=A0 (org-agenda-sticky nil)

=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=C2=A0=C2=A0 (org-agenda-view-columns-initially = t)

=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=C2=A0=C2=A0 (org-agenda-sorting-strategy (quote= (tsia-down todo-state-down)))))))

=C2=A0

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

=C2=A0

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

=C2=A0

What I=E2=80=99d like to do is limit this to only sh= ow say the 10 most recently worked items.

Can=E2=80=99t seem to find a way to do this.<= u>

Any ideas? This limit needs to happen after the sort= .

=C2=A0


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.=C2=A0 Thank you.

--001a11c236866aa12e050e3494ee--