-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renamed the settings file to allow users to override it #19
Renamed the settings file to allow users to override it #19
Conversation
I think this can be done easier by matching on the hostname. It is easy to override this so I personally prefer having this here as a working file rather than having a dummy file. I think I'm gonna keep it as is for now |
What do you mean by "matching on the hostname"? It's not intuitive to me that configuration settings would be baked into a repository. I think this will encourage forking of this repository, which I think is bad for contribution. |
FWIW - I'm not opposed to having a setup script or something that copies the configuration example file to a real location in this repository that is in the |
You can put the hostname in the context header and it will override any settings without the context header. So the config is decoupled and easy to override. I am not sure I will change this since knausj also has settings in done in a similar way I am a bit unsure on this so going to leave it open for time being. |
I'm not a fan of this approach, but at the very least, can you put a commented out example of how to override it? I still don't know how to do this myself. If we follow the configuration practice of community, we will likely end up with the same results (i.e. many forked repositories that do not upstream contributions) over time. |
I'm raising this issue on the community repo on the same topic. Thought I'd share here for visibility too: talonhub/community#1384 |
Regarding using the host name to override: I do commit my personal configuration to a repository and I also deploy it to multiple machines, so relying on the host name isn't convenient since it varies per computer which means I'll need a custom deployment script just for that. I haven't had a need to override any settings in community yet that were hard coded into the configuration file. Many of those have defaults that aren't committed so you can override it with a settings file anywhere in your user folder. There are a few settings that are hard coded, though, and I have struggled with how to change them since I doing want to fork the repository. |
OK here is what I'll say. I think having a '.example' file might not be immediately intuitive for new users. And I like having a real live talon settings file where you can edit, since the vast majority of people do not fork and the ones who do haven't really complained. I am willing to merge this if we
|
These all sound good to me. I'll put that together soon. |
I tested without the settings file and it does work as expected. |
14855c3
to
400a18b
Compare
Moved around a couple relics in the readme and made some things a bit more terse
Thanks, merged |
I prefer for configuration to not be committed to the repository since it makes it difficult for users to override the configuration. This change allows users to see an example that they can easily copy and paste into their own configuration folder, which will hopefully make it easier for people to use this repository without having to make their own fork.