Skip to content
Quick Actions for Xcode to jump to a source code line on Github or copy GitHub link to clipboard.
Branch: master
Clone or download

Latest commit

wojteklu Handle SSH prefix in remote repository (#7)
Fixed remote repository with SSH prefix, e.g. ssh://git@github.com/test/test.git.
Latest commit 2a96423 Dec 23, 2019

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images Handle whitespace in source path (#6) Dec 23, 2019
quick-actions Handle SSH prefix in remote repository (#7) Dec 23, 2019
.gitignore Add source Dec 14, 2019
LICENSE Add source Dec 14, 2019
README.md Update readme with how it works (#3) Dec 20, 2019

README.md

xcode-open-on-github ⚙️

Quick Actions for Xcode to jump to a source code line on Github or copy GitHub permalink to clipboard.

1️⃣ Open on Github

2️⃣ Copy GitHub link to clipboard

Install

Just double-click the files in quick-actions directory to add them to the Services menu.

Pro Tip ®

You can create your own keyboard shortcuts for added actions:

  1. Open System Preferences > Keyboard. Click the Shortcuts tab and select Services from the list on the left side.
  2. Scroll all the way down the list of services. Under the Text heading you should find the quick actions you just added. Select it and click Add Shortcut to assign a global shortcut.

How it works?

Quick Actions for Xcode are AppleScript scripts. From the Xcode app we get a path of active document and selected lines. Using shell scripts we determine repository URL, current commit and top-level directory of a repository. All that allows constructing a GitHub link.

Author

Wojtek Lukaszuk @wojteklu

License

This project is licensed under the terms of the MIT license. See the license file.

You can’t perform that action at this time.