[Ml-yokadi] We should use Keyword in a smarter way
Aurélien Gâteau
aurelien.gateau
Ven 13 Fév 21:34:00 CET 2009
Aurélien Gâteau wrote:
> Sébastien Renard wrote:
>> Le mardi 10 février 2009, Aurélien Gâteau a écrit :
>>>> Do you want to remove the -k ?
>>> I would rather revert the change :/. If we want to go for @keyword, then
>>> I believe we should have a reflexion on our usage of OptionParser. I
>>> sometimes wonder whether Yokadi would be more usable if it featured a
>>> natural language.
>> Cf. Frederic post, yes we should. But with at least little structure to avoid
>> black magic. Standard switch (-k --keyword) are quite to strict for common
>> use but ideal for complex command (I think to t_list where it is perfect).
>> For t_add, we could use @ for keyword and other symbol for project (= for
>> exemple)
>> t_add =myProject @aKeyword the title of the task @anotherKeyword
I found an interesting alternative to the "=project" syntax in Glista, a
GTK+ todo list manager [1]. This application uses "project:" to
categorize tasks. This way the t_add becomes:
t_add myProject: @aKeyword the title of the task @anotherKeyword
This looks more natural to me. The rule would be "if the first word ends
with a ':', it is a project name". This rule would apply to t_add,
t_edit and t_list as well. What do you think about this?
Aurélien
[1]: http://prematureoptimization.org/glista/
Plus d'informations sur la liste de diffusion Ml-yokadi