kdheepak / taskwarrior-tui

`taskwarrior-tui`: A terminal user interface for taskwarrior
https://kdheepak.com/taskwarrior-tui
MIT License
1.53k stars 70 forks source link

Move `taskwarrior-tui` specific configuration into a separate configuration file. #520

Open ferdinandyb opened 1 year ago

ferdinandyb commented 1 year ago

Description

taskwarrior-tui currently uses non-standard uda fields for configuring itself. Although taskwarrior currently does not trip up on this, I think this is in general not a good idea:

Solution

Either move and "extra", taskwarrior-tui specific settings to an external configuration file ~/.config/taskwarrior-tui/config like it and bugwarrior. You can do this backwards compatible, by checking for the existence of the configuration file and only look for uda.taskwarrior-tui entries if the file doesn't exist.

I checked if a top-level taskwarrior-tui entry could work, like for taskd, but taskwarrior didn't like that.

kdheepak commented 1 year ago

Thanks for opening an issue. I agree, a separate configuration to house taskwarrior-tui related settings would be cleaner even if it caused no issues with any other software. I wish I did it from the get go, but alas, hindsight is 20-20.

I think for backwards compatibility I might have to still support this but my plan is to encourage moving taskwarrior-tui related settings to a separate file.