Skip to content

v1.7.3

Choose a tag to compare

@github-actions github-actions released this 31 May 11:59
· 3 commits to main since this release

pollen v1.7.3

The Ctrl+/ help overlay gains two action buttons. Until
now it was strictly an informational accordion: ↑/↓ moved
between section headers, Enter expanded or collapsed
them. The two new buttons sit above the section list and
respond to Enter the way buttons should — they run an
action.

The first button, "Open Settings", opens the Settings
overlay directly. Same code path as Ctrl+P, but reachable
from inside the help so a user who opened Ctrl+/ looking
for "where do I change the timeout" doesn't have to close
the help, recall the Ctrl+P binding, and reopen another
overlay. The second button, "Reset settings to defaults",
resets every settings.json key to its built-in default.
Because this is destructive, the button does not fire
immediately — it switches the help body to a y/n
confirmation view ("Reset all settings to their default
values?"). Y runs the reset (applySettings on
settings.Defaults(), which dispatches the runtime globals
and persists the new file); N or Esc returns to the
normal help. A status-bar toast ("settings reset to
defaults") confirms the reset succeeded.

A small extraction supports the reset path:
internal/settings now exposes a Defaults() function
that returns the canonical *Settings, matching what
Load() yields when no file is present. Previously those
defaults lived inline in Load(); both startup and the
in-TUI reset now share the same source of truth.

Added:

  • "Open Settings" button at the top of the Ctrl+/ help
    overlay. Enter opens the Settings overlay (same as
    Ctrl+P)
  • "Reset settings to defaults" button at the top of the
    Ctrl+/ help overlay with a y/n confirm step. Y resets
    every settings.json key to its default and applies it
    immediately; N or Esc cancels
  • settings.Defaults() returning the canonical default
    *Settings, used by the new reset path

Changed:

  • Help overlay focus now spans buttons + sections in a
    single ↑/↓ cycle. Cursor starts on the first button
    when Ctrl+/ opens. Enter on a button activates it;
    Enter on a section header still expands or collapses
  • Help overlay footer hint updated to reflect the new
    Enter semantics ("Enter: run / expand")

Notes:

  • v1.x SemVer-frozen surface unchanged. No new key
    bindings, no settings keys, no persistence format
    change. The reset action is reachable only through the
    help overlay's button, not from a global shortcut
  • The remaining applySettings data race against httpx
    package globals (flagged in v1.7.2) is unchanged here.
    The new reset path goes through the same applySettings
    call site, so it inherits the same lower-priority issue
    and the same deferred fix plan (Snapshot pattern or
    atomic primitives in httpx)

See CHANGELOG.md for the full list.