fix(settings): keep config keys the settings screen doesn't manage #57
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jwarykowski/shepherd!57
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/settings-keep-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A settings save (
,) rewrote config.toml with only the six keys it manages, so it droppedplacement/direction(read by open.sh for the herdr pane) and any comments.Now it writes the managed keys and keeps every other line. A managed array written across several lines is skipped up to its closing bracket, so it can't leave orphaned lines that break the file.
The config reader also reads multi-line arrays now. Before, a hand-written multi-line
categories/statusesarray read as empty, and the next settings save wrote it back empty. It's now read in full and saved on one line.Split out of #51.