cinatic / taskwhisperer

Taskwhisperer is a extension for TaskWarrior Application https://taskwarrior.org. It is to display upcoming tasks and task details as well as to create and modify them.
GNU General Public License v3.0
141 stars 20 forks source link

Ability to configure flags passed to task binary #54

Open non-Jedi opened 6 years ago

non-Jedi commented 6 years ago

Really all I want is to be able to have taskwhisperer call task rc:/path/to/alternate/.taskrc ... for my use case I guess.

non-Jedi commented 6 years ago

If anyone else is looking for a quick fix to this and (like me) doesn't know enough JS to fix it properly. Add the following line to top of taskService.js:

const taskrcarg = 'rc:/path/to/alternative/.taskrc'

And then replace in taskService.js every instance of 'task' with 'task', taskrcarg. This is working for me now, inelegant though it may be.

I leave the needed modification of extra/modify.sh and extra/create.sh as a very simple exercise for the reader.