[Ml-yokadi] We should use Keyword in a smarter way

Sébastien Renard Sebastien.Renard
Lun 23 Mar 09:23:41 CET 2009


Le dimanche 15 février 2009 23:21:06, Aurélien Gâteau a écrit :
> - Removing -k from parser options in t_add, t_edit and t_list.

Done.

> - Introducing parseutils.extractKeywords() which would accept a text and
> returns a tuple (text, {keywordDict})

Done.

> - Rewriting parseutils.parseTaskLine() to support "@keyword" and
> "project:" syntax, using extracKeywords().

Done.

> t_add and t_edit would use parseTaskLine(), as they do now.
>
> t_list would use extractKeywords(), providing a syntax like this:
>
> - t_list foo => all tasks of project "foo"
>
> - t_list @bar => all tasks of all projects with keyword "bar"
>
> - t_list default @bar => all tasks of default project with keyword "bar"
>
> - t_list foo_% => all tasks of all projects whose names start with "foo_".

Done. The -k / @ hack still need to be removed.

-- 
Sébastien



Plus d'informations sur la liste de diffusion Ml-yokadi