Re: [O] [PATCH] Display a count of items next to each list (or block)

2013-10-01 Thread Bernt Hansen


Bernt Hansen be...@norang.ca writes:

 Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org
 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.

This patch also breaks the default N and P key bindings which skips over
uninteresting lines in the agenda.

Regards,
Bernt




Re: [O] [PATCH] Display a count of items next to each list (or block)

2013-09-30 Thread Sebastien Vauban
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




Re: [O] [PATCH] Display a count of items next to each list (or block)

2013-09-28 Thread Bernt Hansen


Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org
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




Re: [O] [PATCH] Display a count of items next to each list (or block)

2013-09-26 Thread Achim Gratz

Am 25.09.2013 22:09, schrieb Sebastien Vauban:

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).


Minor nit: to my ears item count sounds better than count of items.

Achim.






Re: [O] [PATCH] Display a count of items next to each list (or block)

2013-09-26 Thread Sebastien Vauban
Hi Achim,

Achim Gratz wrote:
 Am 25.09.2013 22:09, schrieb Sebastien Vauban:
 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).

 Minor nit: to my ears item count sounds better than count of items.

No problem (I'm no English native speaker, and I'm glad when I'm corrected, for
improving myself).

You then mean you'd rename the variable (and potentially other comments or
names in the code)?  To `org-agenda-display-item-count'
 or `org-agenda-display-items-count'?

Best regards,
  Seb

-- 
Sebastien Vauban