Taskwarrior::Kusarigama::Plugin::Morning - run the garbage collector on first invocation of the day
version 0.12.0
Runs the garbage collector if this is the first invocation of taskwarrior of the day.
How is this plugin useful? Well, by default, taskwarrior runs its garbage collection each time it's run. The problem is, that garbage collection compact (and thus changes) the task ids, so in-between my last task list and now, the ids might be different. That's a pain. But if the garbage collection is not run, hidden tasks and recurring tasks won't be unhidden/created. That's a bigger pain.
task list
My solution? Disable the garbage collecting,
$ task config rc.gc off
But of course we still want the garbage collection to happen regularly. Hence this plugin, which runs the garbage collection on the first c<task> command of the day.
Yanick Champoux <yanick@cpan.org>
This software is copyright (c) 2019, 2018, 2017 by Yanick Champoux.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Taskwarrior::Kusarigama, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Taskwarrior::Kusarigama
CPAN shell
perl -MCPAN -e shell install Taskwarrior::Kusarigama
For more information on module installation, please visit the detailed CPAN module installation guide.