From efb6524fa046005ff1437dbd8bb1d39093096a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luka=20Marku=C5=A1i=C4=87?= Date: Thu, 30 Nov 2023 08:01:16 +0100 Subject: [PATCH] Add shortcuts for filtering files by status - 's' for showing only staged files - 'u' for showing only unstaged files - 'r' for resetting the filter --- pkg/gui/controllers/files_controller.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/gui/controllers/files_controller.go b/pkg/gui/controllers/files_controller.go index eed5f9547..bc797c219 100644 --- a/pkg/gui/controllers/files_controller.go +++ b/pkg/gui/controllers/files_controller.go @@ -670,18 +670,21 @@ func (self *FilesController) handleStatusFilterPressed() error { OnPress: func() error { return self.setStatusFiltering(filetree.DisplayStaged) }, + Key: 's', }, { Label: self.c.Tr.FilterUnstagedFiles, OnPress: func() error { return self.setStatusFiltering(filetree.DisplayUnstaged) }, + Key: 'u', }, { Label: self.c.Tr.ResetFilter, OnPress: func() error { return self.setStatusFiltering(filetree.DisplayAll) }, + Key: 'r', }, }, })