summaryrefslogtreecommitdiffstats
path: root/pkg/gui/types
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-11-28 19:53:39 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-11-28 20:48:17 +1100
commitbe404068ffeda8eb43246db77f67573aae3079f3 (patch)
treecd6496b4f044124f90c1af22d415cf8e6f06ed8f /pkg/gui/types
parent5671ec5f5867c3c2b083563bac309c8616b322ae (diff)
support labels for suggestions which are distinct from values
Diffstat (limited to 'pkg/gui/types')
-rw-r--r--pkg/gui/types/suggestion.go8
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
+}