diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-28 20:01:45 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-28 20:48:17 +1100 |
commit | f31fbc10f6a60e493dd09ff602b08b83bd2124fe (patch) | |
tree | cee96887782a543d05a409da5db64fea51afc9f8 /pkg/gui/gui.go | |
parent | be404068ffeda8eb43246db77f67573aae3079f3 (diff) |
soft code finding of suggestions
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r-- | pkg/gui/gui.go | 4 |
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 { |