aboutsummaryrefslogtreecommitdiffstats
path: root/config/style.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-11-13 18:40:11 +0100
committerRobin Jarry <robin@jarry.cc>2022-11-16 16:11:56 +0100
commitb9e5346d6a136244212c913c80a2661d69de692c (patch)
tree94ca6b4b8406f47f743edb795c3591572dda4ed6 /config/style.go
parent46e027bde57204a2383193bd35cabcd0a5dfaaf8 (diff)
downloadaerc-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/style.go')
0 files changed, 0 insertions, 0 deletions