diff options
author | Robin Jarry <robin@jarry.cc> | 2022-11-13 18:40:11 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-11-16 16:11:56 +0100 |
commit | b9e5346d6a136244212c913c80a2661d69de692c (patch) | |
tree | 94ca6b4b8406f47f743edb795c3591572dda4ed6 /config/binds_test.go | |
parent | 46e027bde57204a2383193bd35cabcd0a5dfaaf8 (diff) | |
download | aerc-b9e5346d6a136244212c913c80a2661d69de692c.tar.gz |
config: move [ui] parsing in separate file
The config.go file is getting too big. Move the aerc.conf [ui] section
parsing logic into a dedicated ui.go file.
Add a defaultUiConfig() function to also get the default configuration
values in a separate file.
Extract fragmented bits of code in AercConfig.parseConfig() in a new
AercConfig.parseUi() function defined in ui.go.
Change parseUiConfig() into a UIConfig.parse() method.
Change some methods receiver args to pointers to avoid unnecessary
copies.
No functional change.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Acked-by: Moritz Poldrack <moritz@poldrack.dev>
Diffstat (limited to 'config/binds_test.go')
0 files changed, 0 insertions, 0 deletions