[swift-dev] Automator service: "View Public Swift Commit"

John McCall rjmccall at apple.com
Wed May 18 13:19:27 CDT 2016


> On May 18, 2016, at 11:13 AM, Jordan Rose via swift-dev <swift-dev at swift.org> wrote:
> 
> Hi, fellow Mac users. On GitHub, commit hashes are autolinked (within repositories, anyway), but that doesn't apply to mail clients, or, um, external bug tracking clients *cough*Radar*cough*. I've found myself wanting to jump quickly from a commit hash to the GitHub page for the commit (either to look at the diff, or to see if there are comments), so today I made an Automator workflow. It's just visiting "https://github.com/apple/swift/commit/${selected_text}", but that's good enough for me! (It's easy enough to edit for another repo, too.)
> 
> HOW TO USE
> 1. Download and open the workflow file. Allow Automator to install it as a Service.
> 2. Select a commit hash (even an abbreviated one). Here's one you can use for testing: 7154c6167baafc986f2d289aa96343fe5747bb11
> 3. Menu-click (right-click or control-click) and choose Services > View Public Swift Commit.
> 
> You can also set a keyboard shortcut by going to the Services section of the Shortcuts tab of the Keyboard preference pane.

Excellent, thanks!

John.

> 
> Share and enjoy!
> Jordan
> 
> <View Public Swift Commit.workflow>_______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.swift.org_mailman_listinfo_swift-2Ddev&d=CwIGaQ&c=Hw-EJUFt2_D9PK5csBJ29kRV40HqSDXWTLPyZ6W8u84&r=jdKdk6kiOdZSD0VUWdyZTiL-6Po2RTBOJ0m-YH0T2Ow&m=jYoEiO7KUliJzLBOET27nlHXifbRbeyrMPwWFntAo3A&s=YXWz376SX2obazm8eIdE2s8YCPcFSrOa7obZdTjZleE&e= 



More information about the swift-dev mailing list