GothenburgBitFactory / taskwarrior

Taskwarrior - Command line Task Management
https://taskwarrior.org
MIT License
4.38k stars 297 forks source link

[TW-1899] give hooks the filter args and the command args #1912

Open taskwarrior opened 6 years ago

taskwarrior commented 6 years ago

Yanick Champoux on 2017-03-07T21:46:33Z says:

Right now hooks get the args via, well, the args attribute. E.g.,

{code} args:task something like progr sumfin command:progress {code}

While it's not too hard to have hooks to parse which part of args is the pre-command filter, and which part goes after, it's still tricky because of the possibility to abbreviate the command, and the keyword appearing something else on the line. It's be nice if the hooks got something like

{code} args:task something like progr sumfin pre_command_args: something like post_command_args: sumfin command:progress {code}

taskwarrior commented 6 years ago

Migrated metadata:

Created: 2017-03-07T21:46:33Z
Modified: 2017-03-08T19:07:57Z
taskwarrior commented 6 years ago

Paul Beckingham on 2017-03-08T16:21:49Z says:

It's more complicated than 'before' vs 'after'. How about distinguishing by 'filter' and 'mods'?

taskwarrior commented 6 years ago

Tomas Babej on 2017-03-08T19:07:57Z says:

Indeed, this quickly converges to the necessity of task sharing the (parts of the) parse tree tags with the external program. 3rd party tools should not need to reimplement task's parsing engine.