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/search.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 menu/search.go (limited to 'menu/search.go') diff --git a/menu/search.go b/menu/search.go new file mode 100644 index 0000000..79cc03b --- /dev/null +++ b/menu/search.go @@ -0,0 +1,11 @@ +package menu + +import "strings" + +func (m *Model) AddSearch(croppedInput string) string { + lines := strings.Split(croppedInput, "\n") + lastIndex := len(lines) - 1 + view := m.Search.View() + lines[lastIndex] = view + return strings.Join(lines, "\n") +} -- cgit v1.3.1