Closed RafalSkolasinski closed 8 months ago
Okay, lack of default config is not the root of error above, that was because default term is urxvt
and that one I do not have installed : - )...
Still could consider writing a default config file if it does not exist.
Thanks for your feedback!
The first step could be a clearer error message when the currently configured terminal emulator is not in $PATH
. It should not be too hard to do.
Concerning the configuration, the defaults are taken from the program itself and then merged with the keys redefined by the user. Maybe that hurts discoverability (hence your issue), but one of the advantage is that defaults can be changed without having to update the local configurations in most cases.
Another common pattern is to supply a configuration file with all the default values commented-out, ready to be customized. But as json doesn't officially have comments, we would probably have to change the format and break existing configs.
I have added an auto terminal detection with a proper error message in https://github.com/lbonn/i3-quickterm/commit/6cf0e5caf6519ac11b7a7b406b66a5bd9fb197e7
Just found your project, looks pretty cool! Though, when trying to run it for the first time it complains about lack of json config.
maybe it would be a good idea to create that with default value?