Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
Fix clipboard text bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jclem committed Aug 22, 2019
1 parent b4e0ebc commit 18335be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/cmd/pack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ func TestPack(t *testing.T) {
clipboard := sortedObjs[5]
config = clipboard["config"].(map[string]interface{})
assert.Equal(t, "alfred.workflow.output.clipboard", clipboard["type"])
assert.Equal(t, "{query}", config["text"])

assert.Equal(t, "{query}", config["clipboardtext"])

// Test connections
assert.Equal(t, applescript["uid"], i.Connections[clipboard["uid"].(string)][0].To)
Expand Down
2 changes: 1 addition & 1 deletion config/clipboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

// Clipboard is an object that copies to the clipboard
type Clipboard struct {
Text string `yaml:"text" structs:"text"`
Text string `yaml:"text" structs:"clipboardtext"`
}

func (c *Clipboard) UnmarshalYAML(node *yaml.Node) error {
Expand Down

0 comments on commit 18335be

Please sign in to comment.