feat: lazysecrets list prints everything lazysecrets can find, for fzf and editor pickers #70

Merged
keb merged 45 commits from feat/list into main 2026-10-14 21:30:44 +02:00
Owner

lazysecrets list prints every source, vault and secret lazysecrets can find, one per line, for fzf, editor pickers and scripts: what Go to searches, without the TUI. What's cached prints at once; what's missing or older than --max-age loads in the background and streams in. It stops when the reader goes (a pick in fzf), saving what it loaded.

  • Text: kind, mark (✗/⚠, ★, ◷ and the provider icon), name, status (why it couldn't be read, or expired / expires in 12d), note, account and link, tab-separated; kind first and account and link last, so new fields go between. Coloured from the theme; --color never, --icons=false, --stars=false, --recent, --notes=false, --expiry=false.
  • --format json: an object per line, with starred, recent, lastUsed and uses, expires, enabled, note, reference and url too.
  • --kind lists only some kinds, and doesn't load lists only other kinds need; --cached loads nothing.
  • lazysecrets open --action go|copy|show skips the "what to do" menu and ends in the list, like Go to; open and get take --account, the account list printed, rather than asking which.
  • The cache file moved to internal/cachefile: saves merge with the file under a lock, so list and the TUI don't undo each other.
  • ui.recentIcon marks items used lately with ◷ in the TUI's lists too; Recent now means the last 90 days.
  • --demo has stars, notes, recent use, and expired, expiring and disabled secrets.
  • docs/integration.md documents get, list and an fzf picker; docs/links.md is docs/sharing.md.
`lazysecrets list` prints every source, vault and secret lazysecrets can find, one per line, for fzf, editor pickers and scripts: what Go to searches, without the TUI. What's cached prints at once; what's missing or older than `--max-age` loads in the background and streams in. It stops when the reader goes (a pick in fzf), saving what it loaded. - Text: kind, mark (✗/⚠, ★, ◷ and the provider icon), name, status (why it couldn't be read, or expired / expires in 12d), note, account and link, tab-separated; kind first and account and link last, so new fields go between. Coloured from the theme; `--color never`, `--icons=false`, `--stars=false`, `--recent`, `--notes=false`, `--expiry=false`. - `--format json`: an object per line, with starred, recent, lastUsed and uses, expires, enabled, note, reference and url too. - `--kind` lists only some kinds, and doesn't load lists only other kinds need; `--cached` loads nothing. - `lazysecrets open --action go|copy|show` skips the "what to do" menu and ends in the list, like Go to; `open` and `get` take `--account`, the account list printed, rather than asking which. - The cache file moved to `internal/cachefile`: saves merge with the file under a lock, so list and the TUI don't undo each other. - `ui.recentIcon` marks items used lately with ◷ in the TUI's lists too; Recent now means the last 90 days. - --demo has stars, notes, recent use, and expired, expiring and disabled secrets. - docs/integration.md documents get, list and an fzf picker; docs/links.md is docs/sharing.md.
keb added 44 commits 2026-10-14 21:24:49 +02:00
keb added 1 commit 2026-10-14 21:29:57 +02:00
docs: the README's Development entry says how changes land, as the page does
CI / Checks (pull_request) Successful in 37s
PR title / Conventional title (pull_request) Successful in 1s
2df54aec1f
keb merged commit 39454d47a8 into main 2026-10-14 21:30:44 +02:00
keb deleted branch feat/list 2026-10-14 21:30:44 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: keb/lazysecrets#70