From c01a06e38d0b0331f459cd439ce7706ef1556e50 Mon Sep 17 00:00:00 2001 From: ewy Date: Sat, 2 May 2026 16:23:36 +0200 Subject: * fix infinite loop on not found * add bash tab completion script (will have install option in the future) * add search to tui (bound to / and ?) --- menu/target.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'menu/target.go') diff --git a/menu/target.go b/menu/target.go index f0b35fd..ee31889 100644 --- a/menu/target.go +++ b/menu/target.go @@ -14,6 +14,10 @@ var ( st := lipgloss.NewStyle().Border(lipgloss.OuterHalfBlockBorder(), false, false, false, true) return st }) + TargetHighlightedColor = lipgloss.Color("1") + TargetHighlightedStyle = style.New(func() lipgloss.Style { + return TargetStyle.Get().Foreground(TargetHighlightedColor) + }) SelectedTargetStyle = style.New(func() lipgloss.Style { return TargetStyle.Get().BorderBackground(SelectedTargetBackgroundColor).Background(SelectedTargetBackgroundColor) }) @@ -59,6 +63,11 @@ func (m *Model) Target(src *model.HydratedSource, t model.HydratedTarget, header } selectionStyle := TargetStyle selectionDescriptionStyle := TargetDescriptionStyle + + if m.Highlights(src, t) { + selectionStyle = TargetHighlightedStyle + } + if selected { selectionStyle = SelectedTargetStyle selectionDescriptionStyle = SelectedTargetDescriptionStyle -- cgit v1.3.1