Search local repos with ghq in Alfred Workflow.
- Alfred 3.4 (or later)
- ghq
This tool is a CLI tool. Output JSON strings.
$ ./go-alfred-ghq '{query}' $(ghq list -p)
This workflow start with ghq {query}
in alfred.
Filtering the result of ghq list -p
with {query}
and show them.
You should specify path to ghq
. Open this workflow settings, and edit environment variables. Default is /usr/local/bin/ghq
.
And I recommend you to specify a editor and terminal app. Default is Visual Studio Code.app
and iTerm.app
- Enter: Open repository in Finder.
- Shift + Enter: Open repository in your default browser.
- Command + Enter: Same as Enter only.
- Option + Enter: Search "user/repo" in google.
- Fn + Enter: Open repository in your terminal.
- Control + Enter: Open repository in your editor.
My environment is as follows.
- Go 1.9
- Glide 0.12.3
$ glide update
$ go test $(glide novendor) -v
$ go build .
Icons provided by www.flaticon.com.
Icon made by Freepik from www.flaticon.com
Icon made by Swifticons from www.flaticon.com
pudding
MIT