From 6a6316cfb632a28627e067c8a4d30786acffee38 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Fri, 31 May 2024 17:24:50 +0200 Subject: Use model searching in commits (and sub-commits) view --- pkg/gui/types/context.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/gui/types/context.go') diff --git a/pkg/gui/types/context.go b/pkg/gui/types/context.go index 63c759eb6..b0e312c97 100644 --- a/pkg/gui/types/context.go +++ b/pkg/gui/types/context.go @@ -114,12 +114,16 @@ type ISearchableContext interface { Context ISearchHistoryContext + // These are all implemented by SearchTrait SetSearchString(string) GetSearchString() string ClearSearchString() IsSearching() bool IsSearchableContext() RenderSearchStatus(int, int) + + // This must be implemented by each concrete context. Return nil if not searching the model. + ModelSearchResults(searchStr string, caseSensitive bool) []gocui.SearchPosition } type DiffableContext interface { -- cgit v1.2.3