From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: [PATCH] Display a count of items next to each list (or block) Date: Mon, 30 Sep 2013 11:05:39 +0200 Message-ID: <86vc1ik7bw.fsf@somewhere.org> References: <86d2nwhdda.fsf@somewhere.org> <87ioxlc63e.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Bernt, Bernt Hansen wrote: > "Sebastien Vauban" writes: > >> In order to make Org much nicer to use, I felt we missed a count of items >> next to the lists (or blocks, for multi-block agenda views). Here is a patch >> to add this, depending on the new variable >> `org-agenda-display-count-of-items' (enabled by default). >> >> The count of items must be updated when you apply tag filtering on lists. >> The patch does it as well. > > This patch doesn't report correct counts when a compact agenda is used and > you filter by some task that doesn't match any entries in your block. > > The block is empty and shows no tasks but the counter is incorrect. > > ;; Compact the block agenda view > (setq org-agenda-compact-blocks t) > > Filter by some tag not in these blocks > > / TAB PERSONAL RET > > Tasks to Refile (15/0) > Stuck Projects (15/1) > > If the counts are correct I think this makes a good addition to org-mode. Thanks for testing! I may have a hard time when there is no explicit separator between blocks. Though, I'll try to fix it ASAP and come back with a solution for that edge case. Best regards, Seb -- Sebastien Vauban