From f6c4f5f6f61e0936f52bbbecd07a49f7cbc9f4d1 Mon Sep 17 00:00:00 2001 From: keb Date: Sun, 11 Oct 2026 10:09:46 +0200 Subject: [PATCH] fix: show search instead of grouped/flat in the Sources help bar (#6) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Sources pane's help bar listed `` ` `` (grouped/flat sources), a rarely used toggle, but not Go to (`ctrl+s`), the main way to find things. Search now takes its place, right after `enter`; the toggle is still in `?`. Golden output updated: at 100 columns the bar now reads `enter open • ctrl+s search • s copy link • S share… • f star • F favourites • … • ? help • q quit` (`n note` moves behind the `…`). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Karl-Einar Bergstrøm Reviewed-on: https://git.kebcloud.no/keb/lazysecrets/pulls/6 --- internal/ui/app/help.go | 2 +- internal/ui/app/testdata/TestGolden.golden | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ui/app/help.go b/internal/ui/app/help.go index da2f222..872443f 100644 --- a/internal/ui/app/help.go +++ b/internal/ui/app/help.go @@ -46,7 +46,7 @@ func (c contextHelp) ShortHelp() []key.Binding { } switch c.focus { case paneSources: - b = append(b, k.Enter, k.Share, k.ShareMenu, k.Favourite, k.Favourites, k.Note, k.SourcesView, k.Filter) + b = append(b, k.Enter, k.Search, k.Share, k.ShareMenu, k.Favourite, k.Favourites, k.Note, k.Filter) case paneContainers: b = append(b, k.Enter, k.Share, k.ShareMenu, k.Favourite, k.Note, k.Open, k.Filter) default: diff --git a/internal/ui/app/testdata/TestGolden.golden b/internal/ui/app/testdata/TestGolden.golden index cfbd552..230128d 100644 --- a/internal/ui/app/testdata/TestGolden.golden +++ b/internal/ui/app/testdata/TestGolden.golden @@ -27,4 +27,4 @@ │ ││ │ │ ││ │ ╰────────────────────── 1 of 3 ─╯╰─────────────────────────────────────────────────────────────────╯ - enter open • s copy link • S share… • f star • F favourites • n note • … • ? help • q quit \ No newline at end of file + enter open • ctrl+s search • s copy link • S share… • f star • F favourites • … • ? help • q quit \ No newline at end of file