From b5d97570f1d224fcab311fe7a93cbc00f888d6f4 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sun, 25 May 2025 15:08:15 +0200 Subject: [PATCH] Add key bindings to filtering menu --- pkg/gui/controllers/filtering_menu_action.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/gui/controllers/filtering_menu_action.go b/pkg/gui/controllers/filtering_menu_action.go index f509e607a..029fe0534 100644 --- a/pkg/gui/controllers/filtering_menu_action.go +++ b/pkg/gui/controllers/filtering_menu_action.go @@ -60,6 +60,7 @@ func (self *FilteringMenuAction) Call() error { menuItems = append(menuItems, &types.MenuItem{ Label: self.c.Tr.FilterPathOption, + Key: 'p', OnPress: func() error { self.c.Prompt(types.PromptOpts{ FindSuggestionsFunc: self.c.Helpers().Suggestions.GetFilePathSuggestionsFunc(), @@ -76,6 +77,7 @@ func (self *FilteringMenuAction) Call() error { menuItems = append(menuItems, &types.MenuItem{ Label: self.c.Tr.FilterAuthorOption, + Key: 'a', OnPress: func() error { self.c.Prompt(types.PromptOpts{ FindSuggestionsFunc: self.c.Helpers().Suggestions.GetAuthorsSuggestionsFunc(), @@ -93,6 +95,7 @@ func (self *FilteringMenuAction) Call() error { if self.c.Modes().Filtering.Active() { menuItems = append(menuItems, &types.MenuItem{ Label: self.c.Tr.ExitFilterMode, + Key: 's', OnPress: self.c.Helpers().Mode.ClearFiltering, }) }