Skip to content

v0.78.0

Choose a tag to compare

@ltdan-88 ltdan-88 released this 03 Sep 14:18
· 11 commits to main since this release
fced2c2

What

F2's F3 preview now lists real content for All, Hidden, Most Used, Recently Launched, and Recently Added, instead of "Not a
stored category — nothing to preview."

Why

Raised live: "why wouldn't it list the TUIs regardless of whether it
was a stored category?" These five aren't backed by a
CATEGORIES_DIR file — that's still true, and is exactly why they
were skipped in the first place — but that's a reason the preview
code hadn't been built for them, not a reason they can't be
previewed. Each is computable from data the preview can already
reach: the cache itself (All/Hidden), and the plain launch-history log
plus the cache's own install-time field (Most Used/Recently Launched/
Recently Added).

Implementation

  • All/Hidden: same hidden/shown/bundled-hidden combining rule the
    real-category branch already uses, read straight from the cache.
  • Most Used/Recently Launched/Recently Added: numbered by rank
    (not alphabetical — sorting away a ranked view's whole point would
    defeat the preview), capped at the same COMPUTED_VIEW_LIMIT (15)
    the real view enforces. A launch-history entry for a since-
    uninstalled command is excluded, same as the real view only ever
    shows entries that still exist in the cache.
  • Confirmed tie-break direction against the real, shipped
    build_entries() directly rather than assumed — ${(On)array}
    sorts ascending then reverses the whole array, so ties land reverse-
    alphabetical, not forward. Matched that exactly rather than
    "fixing" it to something more intuitive but inconsistent with the
    real view.

Verification

  • test/picker-details-fixtures.sh extended with a dedicated,
    save-and-restore cache/launch-history fixture covering all five
    views, hidden-exclusion, the stale-launch-history case, the Empty
    case, and the 15-tool cap (with a genuine tie, to prove where it
    actually lands).
  • Proved two different regressions fail this test (the whole new
    branch removed; just the stale-history exclusion removed) before
    restoring.
  • Verified live in tmux: seeded cache + launch history, opened F2,
    confirmed All/Most Used render real content.
  • Full local suite passes.
  • README, --help, F1's Keys topic updated.

🤖 Generated with Claude Code

https://claude.ai/code/session_01H7EeVRRBpp94V7PkdVHdE6