vcom/internal/config
vrubelroman 28fd86b8d5 feat(config): non-fatal loading with warnings and in-place SetKey (2C.2)
Load finds the file through paths (no ./vcom.toml), returns defaults plus an
error for a broken file instead of exiting, warns about unknown and
deprecated keys (strict second pass), resets invalid values with a warning,
and aliases center_width_percent to ui.preview_width_percent. New keys from
design §9.2 get defaults. SetKey edits one line keeping comments, order and
unknown keys, appends missing keys/sections, creates the XDG file, refuses
a file that does not parse and verifies the result before an atomic write.
The old UI shows config errors in the status line and survives an unknown
theme name; the reference vcom.toml is documented and current.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:35:23 +03:00
..
config.go feat(config): non-fatal loading with warnings and in-place SetKey (2C.2) 2026-10-31 23:35:23 +03:00
config_test.go feat(config): non-fatal loading with warnings and in-place SetKey (2C.2) 2026-10-31 23:35:23 +03:00
lookup.go feat(config): non-fatal loading with warnings and in-place SetKey (2C.2) 2026-10-31 23:35:23 +03:00
session.go ci: gofmt/vet/race/vendor checks via Makefile; release reuses CI 2026-10-31 23:02:31 +03:00
setkey.go feat(config): non-fatal loading with warnings and in-place SetKey (2C.2) 2026-10-31 23:35:23 +03:00
setkey_test.go feat(config): non-fatal loading with warnings and in-place SetKey (2C.2) 2026-10-31 23:35:23 +03:00