diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-05-31 17:24:50 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-06-23 11:43:12 +0200 |
commit | 6a6316cfb632a28627e067c8a4d30786acffee38 (patch) | |
tree | e9092175bcdac6fbd3df73fffb9c72fe37d54ffa /pkg/gui/types | |
parent | 779e6f95a3fca869fb886201305217deb2dca8f5 (diff) |
Use model searching in commits (and sub-commits) view
Diffstat (limited to 'pkg/gui/types')
-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 { |