Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Folder name suggestion: config #1

Closed
nainemom opened this issue Feb 13, 2024 · 5 comments
Closed

Folder name suggestion: config #1

nainemom opened this issue Feb 13, 2024 · 5 comments

Comments

@nainemom
Copy link

As you know most of unix based distros considers files or folders starting with . as a hidden file. And in terms of value, I think this folder is more valuable than for example node_modules or package manager lock file to be displayed by default.
So why not just be the config instead of .config?

@nainemom nainemom changed the title Why not just "config" instead of .config? Folder name suggestion: config Feb 13, 2024
@KubaJastrz
Copy link

Probably because of XDG.

Also, https://github.com/cosmiconfig/cosmiconfig supports .config too.

@Jak2k
Copy link

Jak2k commented Feb 13, 2024

.config has the advantage of being at the top of the file explorer in VS-Code.

@pi0
Copy link
Owner

pi0 commented Feb 13, 2024

Thanks for the suggestion. Yes i agree it might make it harder for File Explorer tools to see this config meanwhile it has advantage of being sorted as first directory and it is not usually hidden in code editors. PS: Consider many of current top-level files are prefixed with dot already so it is not a new issue.

Regardless I have mentioned your idea in the alternatives section: https://github.com/pi0/config-dir/blob/main/README.md#alternative-directory-names

@pi0
Copy link
Owner

pi0 commented Feb 13, 2024

Let's followup from #3

@pi0 pi0 closed this as completed Feb 13, 2024
@pawamoy
Copy link

pawamoy commented Mar 20, 2024

Honestly, having it shown earlier, but amongst many other dot-directories doesn't really make a difference.

config

As said in #13, I'd find it weird to put my config files directory in the "hidden, ignored" group, next to cache and build artifacts directories. If important files and directories didn't start with ., I could actually hide the ones that do.

I suppose we can tolerate .github because it starts with .git 🤷 But I'd gladly move .github and .vscode as config/github and config/vscode if I could 😄

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants