diff options
author | bptato <nincsnevem662@gmail.com> | 2022-12-11 22:38:08 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-12-11 22:38:08 +0100 |
commit | 304640f7f7443a11753cdcea26926090daa59de0 (patch) | |
tree | d88c679ddb84af93f6bfd577345a8cacd9ea6ffb /src/config | |
parent | 5931e0a5578852dcd0a7d7820be3012f2132f848 (diff) | |
download | chawan-304640f7f7443a11753cdcea26926090daa59de0.tar.gz |
Add visual-home, rename undocumented config values
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/config.nim | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/config/config.nim b/src/config/config.nim index 19cf9a8a..aa67152d 100644 --- a/src/config/config.nim +++ b/src/config/config.nim @@ -45,6 +45,7 @@ type siteconf: seq[StaticSiteConfig] forceclear*: bool emulateoverline*: bool + visualhome*: string BufferConfig* = object userstyle*: string @@ -148,10 +149,15 @@ proc readUserStylesheet(dir, file: string): string = proc parseConfig(config: Config, dir: string, t: TomlValue) = for k, v in t: case k - of "startup": - config.startup = v.s - of "headless": - config.headless = v.b + of "start": + for k, v in v: + case k + of "visual-home": + config.visualhome = v.s + of "run-script": + config.startup = v.s + of "headless": + config.headless = v.b of "page": for k, v in v: config.nmap[getRealKey(k)] = v.s |