fix(tui): handle settings save errors and rewrite truncate_to_columns (closes #30)

- Report save failures in settings instead of silently discarding errors
- Save draft first, commit color_config only on success (prevents split-brain)
- Show error message in red on status bar, stay in Settings mode on failure
- Clear error on Esc, entering settings, or any settings edit
- Rewrite truncate_to_columns as dedicated O(prefix) truncator
- Tab: stop before tab if expansion would exceed width
- Fixes pre-existing test_truncate_to_columns_tab failure
This commit is contained in:
dailz
2026-06-11 16:08:57 +08:00
parent dfc016c348
commit c1a931551b
4 changed files with 164 additions and 8 deletions

View File

@@ -11,6 +11,7 @@ anyhow.workspace = true
log-viewer-core.workspace = true
serde_json.workspace = true
crossbeam-channel.workspace = true
unicode-width.workspace = true
[dev-dependencies]
tempfile = { workspace = true }