VladimirMarkelov / ttdl

TTDL - Terminal Todo List Manager
MIT License
209 stars 17 forks source link

Add ability to load config file from a given path #22

Closed murlakatamenka closed 5 years ago

murlakatamenka commented 5 years ago

Suggested syntax:

ttdl -c|--config <path-to-config>

For reference todo.sh uses -d to load its config, -c is for color in its case.

Other thing I'd suggest is to move config file to a separate folder, i.e. to ~/.config/ttdl/ttdl.toml. Yes, it's just a single config file, but there is normally enough system-generated stuff inside ~/.config so it's nice to have important for user settings inside a corresponding application folder. This is subjective, of course, but I'd welcome such change and call it an improvement.

VladimirMarkelov commented 5 years ago

I agree with both suggestions. Moreover, I thought of allowing a user to pass config file path in command line. But I was unsure if anyone needs it. Since, now I am not the only one who thinks of the feature, I'll implement it.

The other suggestion I moved to separate ticket #23 - to keep this one only for '-c|--config' option