diff options
Diffstat (limited to 'pkg/gui/types/context.go')
-rw-r--r-- | pkg/gui/types/context.go | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |