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

Douglas Gregor dgregor at apple.com
Wed May 18 22:39:39 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.)
> 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.

Very cool, thanks!

	- Doug

> 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=BP-9ATpGWBBjdQuRXZ9fxsddMorDffk9RedIL9o8qBk&m=uA2bJWuJrjpR7GhD50HknQ5LbBHO_byP6pMD4oMMUmU&s=aZLo9maTOaIhtfd8OV4xqP8PONqFm_DB-_3nKMw-eAA&e= 

More information about the swift-dev mailing list