[Ml-yokadi] feature request

Sébastien Renard Sebastien.Renard at digitalfox.org
Mon Jul 27 22:08:44 CEST 2009


Le jeudi 23 juillet 2009 23:13:40, Aurélien Gâteau a écrit :
> Sébastien Renard wrote:
> > For once you defend the magic point of view (arg order) and I would
> > prefer explicit (the -k switch).
> > I have to think about it.
> >
> > We could do both (without switch arg order is used).
>
> Propositions are different. If I understand correctly, your proposition
> creates one group for every keyword. 

Yes, you're right.

> Given the following tasks:
> prj1:
> 1 Do foo @people_alan @i18n
> 2 Do bar @people_bob @backport
>
> prj2:
> 3 Do baz @people_bob @people_alan
>
> Running "t_list -k prj%" would output this:
>
> @backport
> prj1: 2 Do bar @people_bob
>
> @i18n
> prj1: 1 Do foo @people_alan
>
> @people_alan
> prj1: 1 Do foo @i18n
> prj2: 3 Do baz
>
> @people_bob
> prj1: 2 Do bar
> prj2: 3 Do baz

Yes.

> That's quite a lot of duplicated task lines.

Because you filter on one keyword and one project for tasks with multiple 
keywords.

> With my version, I would be able to run "t_list @people% prj%" and get:
>
> @people_alan
> prj1: 1 Do foo @i18n
> prj2: 3 Do baz
>
> @people_bob
> prj1: 2 Do bar @backport
> prj2: 3 Do baz
>
> Which seems more interesting (less duplicated task lines). 

Different, you filter on partial keyword name. You can now use @people%. It 
works.

> I could get
> your output with "t_list @% prj%"
>
>
> If you wanted to list everything you need to do with people, running
> "t_list -k" would produce even more duplicates, while running "t_list
> @people%" would give you only what you want.

t_list -k @people% works for that.

But what is cool is to filter on @people% but group by project

t_list @people%

To get this with order_define_grouping, I would have to t_list % @people%.

Filtering with keyword does not imply I want to group by keyword. And vice 
versa.

Both solution provide the same output. The only difference is the way you define 
grouping : 
- with order (first arg is keyword or project)
- with a switch (-k) and a default mode (project grouping).

I prefer the switch option but I can live with the order option. Both are good 
in my opinion.

Could other people on this list give their opinion on those two option ? (or 
maybe provide a third one ?).

-- 
Sébastien


More information about the Ml-yokadi mailing list