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
Showing only changes of commit 4c822e42f1 - Show all commits
+2 -2
View File
@@ -47,7 +47,7 @@ func listCmd(providers []provider.Provider, st *store.Store, cachePath string, t
format := fs.String("format", "text", "text: kind, name, error, account and link, tab-separated; json: an object per line")
color := fs.String("color", "always", "colour the names (text): always or never; fzf needs --ansi")
iconsOn := fs.Bool("icons", withIcons, "put the provider's Nerd Font icon before names (text)")
starIcon := fs.Bool("starred-icon", true, "put ★ before starred names, in the theme's favouriteColor (text)")
stars := fs.Bool("stars", true, "put ★ before starred names, in the theme's favouriteColor (text)")
kinds := fs.String("kind", "", "only these kinds, comma-separated: "+strings.Join(listing.Kinds, ", ")+" (vault: also scopes and repo files)")
showErrors := fs.Bool("errors", true, "list the lists that can't be read, with why (text: ✗ lines; json: \"error\")")
if err := fs.Parse(args); err != nil {
@@ -79,7 +79,7 @@ func listCmd(providers []provider.Provider, st *store.Store, cachePath string, t
write = func(e listing.Entry) error {
// A tab or line break in a name would break the line up.
name := nameOf(e, theme, iconSet, *color == "always")
if *starIcon {
if *stars {
name = starOf(e, theme, *color == "always") + name
}
why := errorOf(e, theme, *color == "always")