Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wojteklu/xcode-open-on-github
Quick Actions for Xcode to jump to a source code line on Github or copy GitHub link to clipboard.
https://github.com/wojteklu/xcode-open-on-github
Last synced: 27 days ago
JSON representation
Quick Actions for Xcode to jump to a source code line on Github or copy GitHub link to clipboard.
- Host: GitHub
- URL: https://github.com/wojteklu/xcode-open-on-github
- Owner: wojteklu
- License: mit
- Created: 2019-12-14T12:21:06.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-12T05:38:10.000Z (over 4 years ago)
- Last Synced: 2024-08-05T09:17:03.418Z (3 months ago)
- Homepage:
- Size: 4.85 MB
- Stars: 218
- Watchers: 5
- Forks: 13
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](http://twitter.com/wojteklu)
## License
This project is licensed under the terms of the MIT license. See the license file.