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