Jump to content
derfla

Github command bar

Recommended Posts

It works similar to the GitHub command bar and to its update, the keyword is "gh" (example: "gh github/gollum issues").

 

With enter you can open the entry in your default browser. If you just want to copy the URL of a repo/user/issue, hit cmd+c on an entry. Hit cmd+enter to paste the URL to the front most app. With shift or cmd+y you can open the URL in QuickLook.

 

You have to login (gh > login <user>) before you can use the workflow. The login command opens a dialog box for the password. The workflow does not save the plain password, only a cookie for the login.

 

DOWNLOAD | GitHub Repository | Command list

 

screenshot.png

Edited by derfla

Share this post


Link to post

Very nice work!

 

I don't know if this is related to my current Alfred settings or something you can add to your workflow, but being able to autocomplete the query would be awesome.

For instance, I start typing "gh github", I then select "github/d3", hit TAB, Alfred search input gets autocompleted to "gh github/d3" and then I can add " issues" and hit enter to get to the issues page of the d3 repo.

Share this post


Link to post

Thanks for the feedback!

 

For instance, I start typing "gh github", I then select "github/d3", hit TAB, Alfred search input gets autocompleted to "gh github/d3" and then I can add " issues" and hit enter to get to the issues page of the d3 repo.

It should already work this way: Example (I typed: "gh github/", DOWN, DOWN, TAB, "is", DEL, DEL, "#")

Share this post


Link to post

Update: I added the missing "gh user/repo issues new" command. And before some weeks I added copy & paste possibilities: With cmd+enter the URL of the current item is copied and pasted to the frontmost app. If you just want to copy the URL, hit cmd+c.

Share this post


Link to post

Update: On weekend I updated the workflow because GitHub has changed the command bar. And today I added the possibility to search files in repos (gh user/repo /path/to/file).

 

See the README on GitHub for a list of all commands.

Share this post


Link to post

Created a bigger update (after many updates with small feature additions in the last months). The cache is refreshed in background now, so the performance/responsiveness should be much better.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...