summaryrefslogtreecommitdiffstats
path: root/pkg/gui/gui.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-11-28 20:01:45 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-11-28 20:48:17 +1100
commitf31fbc10f6a60e493dd09ff602b08b83bd2124fe (patch)
treecee96887782a543d05a409da5db64fea51afc9f8 /pkg/gui/gui.go
parentbe404068ffeda8eb43246db77f67573aae3079f3 (diff)
soft code finding of suggestions
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r--pkg/gui/gui.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go
index f4e6f5b7f..5cc7dd5b3 100644
--- a/pkg/gui/gui.go
+++ b/pkg/gui/gui.go
@@ -113,6 +113,10 @@ type Gui struct {
StartTime time.Time
Mutexes guiStateMutexes
+
+ // findSuggestions will take a string that the user has typed into a prompt
+ // and return a slice of suggestions which match that string.
+ findSuggestions func(string) []*types.Suggestion
}
type RecordedEvent struct {