mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-06 22:33:07 +02:00
Introduce filtered list view model
We're going to start supporting filtering of list views
This commit is contained in:
@ -26,6 +26,8 @@ type FileTreeViewModel struct {
|
||||
|
||||
var _ IFileTreeViewModel = &FileTreeViewModel{}
|
||||
|
||||
// how to tackle this? We could just filter down the list of files at a high point and then the rest will take care of itself.
|
||||
|
||||
func NewFileTreeViewModel(getFiles func() []*models.File, log *logrus.Entry, showTree bool) *FileTreeViewModel {
|
||||
fileTree := NewFileTree(getFiles, log, showTree)
|
||||
listCursor := traits.NewListCursor(fileTree)
|
||||
|
Reference in New Issue
Block a user