From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: [PATCH] Display a count of items next to each list (or block) Date: Sat, 28 Sep 2013 11:35:01 -0400 Message-ID: <87ioxlc63e.fsf@norang.ca> References: <86d2nwhdda.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPwYL-0003cH-6B for emacs-orgmode@gnu.org; Sat, 28 Sep 2013 11:35:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPwYD-0006OU-3c for emacs-orgmode@gnu.org; Sat, 28 Sep 2013 11:35:29 -0400 Received: from plane.gmane.org ([80.91.229.3]:40698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPwYC-0006OH-SX for emacs-orgmode@gnu.org; Sat, 28 Sep 2013 11:35:21 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VPwYA-0001E9-Fm for emacs-orgmode@gnu.org; Sat, 28 Sep 2013 17:35:18 +0200 In-Reply-To: <86d2nwhdda.fsf@somewhere.org> (Sebastien Vauban's message of "Wed, 25 Sep 2013 22:09:53 +0200") 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: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org "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. --8<---------------cut here---------------start------------->8--- ;; Compact the block agenda view (setq org-agenda-compact-blocks t) --8<---------------cut here---------------end--------------->8--- Filter by some tag not in these blocks / TAB PERSONAL RET --8<---------------cut here---------------start------------->8--- Tasks to Refile (15/0) Stuck Projects (15/1) --8<---------------cut here---------------end--------------->8--- If the counts are correct I think this makes a good addition to org-mode. Regards, Bernt