From 4c822e42f1b2a3859c069a967ee05848f0c6510f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl-Einar=20Bergstr=C3=B8m?= Date: Wed, 14 Oct 2026 14:53:51 +0200 Subject: [PATCH] feat: lazysecrets list's --starred-icon is --stars --- cmd/lazysecrets/list.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/lazysecrets/list.go b/cmd/lazysecrets/list.go index 376d2e3..1354db0 100644 --- a/cmd/lazysecrets/list.go +++ b/cmd/lazysecrets/list.go @@ -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")