Skip to content

Commit

Permalink
Working search
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Voloboev committed Dec 25, 2017
1 parent 6fcb45b commit 3eb74fd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions learn-anything.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,19 @@ func doSearch() error {
log.Fatal(err)
}
for k, v := range m {
// log.Printf(strconv.Itoa(k))
// log.Printf(v)
log.Printf(strconv.Itoa(k))
log.Printf(v)
wf.NewItem(v).Arg(strconv.Itoa(k)).Valid(true).UID(v)
}

if query != "" {
wf.Filter(query)
}

wf.WarnEmpty("No matching items", "Try a different query?")
wf.SendFeedback()
return nil

}

type Result struct {
Expand Down
Binary file modified workflow/alfred-learn-anything
Binary file not shown.

0 comments on commit 3eb74fd

Please sign in to comment.