fix(config-settings): refuse to open on an empty state dump

An empty dump does not fail loudly: the TUI renders every row as
DEFAULT, which is indistinguishable from a config where nothing is set.
That is a wrong answer rather than a missing one -- the user would be
looking at ON rows reported as DEFAULT -- so the launcher now checks the
dump is non-empty and bails with a message instead. The taxonomy alone
guarantees output on any working checkout. Also guard a failed mktemp,
which would otherwise send the dump to /state and hand an empty path to
rm -rf.

README: mention that / searches sub-categories across every category.
This commit is contained in:
2026-09-09 15:36:40 -04:00
parent 983434ffb4
commit 208ad95883
2 changed files with 18 additions and 2 deletions
+4 -2
View File
@@ -331,8 +331,10 @@ Each category further sub-divides into two to six sub-categories with
their own `__fish_config_op_<category>_<subcategory>` toggles (e.g.
`__fish_config_op_aliases_filesystem`), following the exact same
truthy/falsy/unset cascade one level deeper. Run `config-settings` and
press Enter on a category row to browse and toggle its sub-categories, or
see the [Components Reference](https://fish.rootiest.fyi/08-components-reference/)
press Enter on a category row to browse and toggle its sub-categories —
or press `/` and type, which searches sub-categories across every
category at once and lists the hits as `Category › Sub`. Or see the
[Components Reference](https://fish.rootiest.fyi/08-components-reference/)
for the full sub-category list per category.
---