diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-28 19:53:39 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-28 20:48:17 +1100 |
commit | be404068ffeda8eb43246db77f67573aae3079f3 (patch) | |
tree | cd6496b4f044124f90c1af22d415cf8e6f06ed8f /pkg/gui/types | |
parent | 5671ec5f5867c3c2b083563bac309c8616b322ae (diff) |
support labels for suggestions which are distinct from values
Diffstat (limited to 'pkg/gui/types')
-rw-r--r-- | pkg/gui/types/suggestion.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/gui/types/suggestion.go b/pkg/gui/types/suggestion.go new file mode 100644 index 000000000..ed8b6ef44 --- /dev/null +++ b/pkg/gui/types/suggestion.go @@ -0,0 +1,8 @@ +package types + +type Suggestion struct { + // value is the thing that we're matching on and the thing that will be submitted if you select the suggestion + Value string + // label is what is actually displayed so it can e.g. contain color + Label string +} |