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_-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Limiting number of items shown in custom agenda Date: Tue, 03 Feb 2015 15:03:20 -0500 Message-ID: <87fvam9307.fsf@alphaville.usersys.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIjhB-0000sQ-4r for emacs-orgmode@gnu.org; Tue, 03 Feb 2015 15:03:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIjh4-0006JZ-UK for emacs-orgmode@gnu.org; Tue, 03 Feb 2015 15:03:37 -0500 Received: from plane.gmane.org ([80.91.229.3]:40527) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIjh4-0006JN-Oj for emacs-orgmode@gnu.org; Tue, 03 Feb 2015 15:03:30 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YIjh0-00060Z-Kf for emacs-orgmode@gnu.org; Tue, 03 Feb 2015 21:03:26 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Feb 2015 21:03:26 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Feb 2015 21:03:26 +0100 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 Subhan Michael Tindall writes: > 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 (:LastWorkedJ > > 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. > Perhaps (org-agenda-max-entries 10) does the trick? Nick 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--