add filter

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2026-08-13 18:22:44 +02:00
parent fc35732dbf
commit 0f7738be68
7 changed files with 117 additions and 11 deletions
+7
View File
@@ -43,6 +43,13 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return m, m.handleReset(msg)
case tea.KeyPressMsg:
if m.filtering {
// Every key goes straight to the filter box while typing (a
// query like "tab" or "r" must not also trigger CycleFocus or
// Reset), same precedence the About page's search box uses.
return m, m.updateLayout(msg)
}
if key.Matches(msg, keys.Keys.Global.Help) {
m.help.ShowAll = !m.help.ShowAll
return m, nil