1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Use searching, not filtering, in file tree views

There's more work to be done to support filtering for these views so we're sticking with searching for now
This commit is contained in:
Jesse Duffield
2023-06-26 11:15:47 +10:00
parent cd989d8ebe
commit 8e46b8a275
7 changed files with 33 additions and 55 deletions

View File

@ -83,7 +83,7 @@ func (self *SwitchToDiffFilesController) viewFiles(opts SwitchToCommitFilesConte
diffFilesContext.SetCanRebase(opts.CanRebase)
diffFilesContext.SetParentContext(opts.Context)
diffFilesContext.SetWindowName(opts.Context.GetWindowName())
diffFilesContext.ClearFilter()
diffFilesContext.ClearSearchString()
if err := self.c.Refresh(types.RefreshOptions{
Scope: []types.RefreshableView{types.COMMIT_FILES},