Hi, I use Chezmoi to deploy my Krita settings across my desktop and travel computers. I keep track of several configs in the Resources directory such workspaces, shortcuts, input methods, color palettes, tags, author info and of course Chezmoi also tracks kritarc as well which is my main issue.
kritarc has certain properties stored in extremely long lines and this just breaks tools like Kate, Meld because it exceed the line lenght limit, giving me friction to manage this file. Here’s Meld failing to compare kritarc
Some example of long lines includes:
ExportConfiguration attributes stored in very long inline XML format
LastColorHistory also in long winded inline XML (this one reaches up to 15673 in lenght!)
[MainWindow] has a State using a very long unwinded format
Is it possible to subdivide KritaRC into more controlled files inside a ~/.config/krita/ directory instead? or is there another way to make this file easier to manage by text editors?
Kate can handle it; it should pop up a warning about the line length limit with a button to “Temporarily raise limit and reload file”, or you can configure the line length limit.
To answer the questions: no it can’t explode into multiple files and no it doesn’t let you break the lines. You could do either of these with a small amount of processing though, you should be able to stick a script into chezmoi to do that instead of fighting against the raw config file.
Ohh, generating the file with chezmoi scripts is actually not a bad idea, I definetively can adopt that approach instead, thanks for the tip!
Also I take there’s no plans for the devs to revisit kritarc soon is it? Just a curious ask really, since you gave me an useful solution already
This stuff is dealt with by KDE’s kconfig library, it’s not part of Krita’s code. You can try asking that library’s developers and resulting changes will make their way into Krita eventually, but I don’t think we’re going to start messing with the behavior from our side.
That’s all fine by me, also much appreciated for shedding some light on the kconfig side of things