[Ml-yokadi] We should use Keyword in a smarter way
Aurélien Gâteau
aurelien.gateau
Lun 23 Mar 16:45:14 CET 2009
Sébastien Renard wrote:
> 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.
>
Woh, this is what I call productive! :) I will come back to you
regarding the update script this evening I hope.
Aurélien
Plus d'informations sur la liste de diffusion Ml-yokadi