todotxt / todo.txt-cli

☑️ A simple and extensible shell script for managing your todo.txt file.
http://todotxt.org
GNU General Public License v3.0
5.56k stars 713 forks source link

XDG Base Directory Specification Compliance #342

Closed Ekstropiya closed 3 years ago

Ekstropiya commented 3 years ago

At the moment, todo.txt creates it's config file in $HOME/.todo/config. Creating configuration folders/files in the user's home directory can make it very cluttered. The XDG Base Directory Specification provides a solution to this by proposing a standard configuration directory: $HOME/.config by default (some operating systems set this to something else). It would be great to have at least one less configuration folder in our home directories.

inkarkat commented 3 years ago

The code supports XDG_CONFIG_HOME for the configuration and custom actions since this commit (submitted in 2015 as #154, merged in 2017). However, the whole configuration alternatives seem to be under-documented, and mostly only the original default location is mentioned.

Ekstropiya commented 3 years ago

Interesting. It didn't seem to work on my machine. I'll try reinstalling and check my environment variables. Sorry, I should've checked the source to see if this wasn't already implemented.

karbassi commented 3 years ago

Should we keep this issue open to focus on documentation or close it?

Thoughts @inkarkat