emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Limiting number of items shown in custom agenda


From: Nick Dokos
Subject: Re: [O] Limiting number of items shown in custom agenda
Date: Tue, 03 Feb 2015 15:03:20 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Subhan Michael Tindall <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]