alfred workflow for open github pages in browser
YOU MUST HAVE NODEJS INSTALLED
The NodeJS should be installed as /usr/local/bin/node
, this workflow assumes this environment
npm install
npm run-script compile
open hub.alfredworkflow
You may change the hotkeys in alfred
gh {repository} [branch] {page}
repository
should be either:- A
/
separated repository name, such asunderscore/underscore
- A single repository name, since the
defaultUser
setting is configured
- A
branch
is used when browse code or commits pages, it can be omitted and defaults tomaster
page
can be either:issues
to browse issue list, aliasissue
pulls
to browse pull requests, aliaspull
wiki
to browse wikipulse
to browse pulsegraphs
to browse graphs, aliasgraph
branches
to browse branches, aliasbranch
,br
releases
to browse releases, aliasrelease
,tags
,tag
contributors
to browse contributors, aliascontributor
ask
to create a new issue, aliassubmit
write
to create a new wiki pagecode
to browse code for selected branchcommits
to browse commits for selected branch, aliascommit
gh-config {key} [value]
key
can be any string without whitespacevalue
can be any string without whitespace, if omitted, alfred will display the value ofkey
defaultUser
sets the default repository user so the first part ofrepository
could be omitted