taskbook
taskbook copied to clipboard
Multi task create
Pull request to support batch creation of tasks and notes using ::
as a delimiter. Addresses #22 but couldn't use |
as delimiter without forcing the creator to wrap the whole description in quotations. If a better delimiter is suggested and agreed upon I can quickly switch it out.
Creating multiple notes
Creating multiple tasks with priority
Creating single task
I like the idea of supporting multi task create, but I personally don't like de abc::xyz syntax and can't think of any other delimiter which would be better. Probably the ideal would be something like:
tb @board -t Task 1 -t Task 2
But it would require a bigger rewrite to avoid repeating the board, and would also require descriptions to be in quotes.
I'm not sure that continuing to use flags would be a good choice either. I think the usage of a delimiter is a good idea, and perhaps something that could be configurable to a user's preference. I would use semi-colons, personally. But making a user have to use more flags degrades the experience.
Good work on this, though. Batch creation is an awesome addition.
@dougmaitelli What speaks against a default delimiter, and the user can set it to this needs? The delimiter char can be stored in the storage.json
or in an seperate config.json
file.
@ManuelTS I just think it looks clearer and more user friendly to split the tasks in batch creation using flags or something else that don't append everything in a long string. But if the delimiter is customizable that could also be enough I believe.