clvk icon indicating copy to clipboard operation
clvk copied to clipboard

Add config.conf and logic to handle config files

Open Rekt3421 opened this issue 1 year ago • 3 comments

Adds configs from .toml file, I decided to go against using individual sections to append the name further since we can do so by keeping everything in a unordered map. Env vars are given priority. Addresses issue #631

Rekt3421 avatar Feb 01 '24 09:02 Rekt3421

I think we need to think about the path of that file. Where should it be? Should we consider multiple possibilities? like /etc/something as well as <current_directory> for example.

rjodinchr avatar Feb 02 '24 17:02 rjodinchr

@rjodinchr I think you are right either we should make a file under /etc/something for system specific configs perhaps? and check the current directory as well. Maybe we can populate a file based on customized configs based on the platform? I am not quite sure myself. WDYT?

Rekt3421 avatar Feb 02 '24 18:02 Rekt3421

have a look at https://github.com/kpet/clvk/blob/main/src/log.hpp, and then change all the prints please.

rjodinchr avatar Feb 06 '24 07:02 rjodinchr