Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexwlchan/alfred_shortcuts_github
An Alfred workflow that links to GitHub repos I use regularly
https://github.com/alexwlchan/alfred_shortcuts_github
alfred-workflow github
Last synced: 2 months ago
JSON representation
An Alfred workflow that links to GitHub repos I use regularly
- Host: GitHub
- URL: https://github.com/alexwlchan/alfred_shortcuts_github
- Owner: alexwlchan
- License: mit
- Created: 2022-06-23T08:25:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-23T20:20:27.000Z (3 months ago)
- Last Synced: 2024-10-24T07:55:52.778Z (3 months ago)
- Topics: alfred-workflow, github
- Language: Python
- Homepage:
- Size: 449 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- project-awesome - alexwlchan/alfred_shortcuts_github - An Alfred workflow that links to GitHub repos I use regularly (Python)
README
# github_alfred_shortcuts
This is a script to help me create an [Alfred Workflow] that links to GitHub repositories that I use regularly.
![Screenshot of an Alfred workflow with three GitHub links](screenshot.png)
I do this with a custom workflow, rather than the built-in web search/bookmark features for two reasons:
* I want to search a lot of repos this way, and it's easier to write a workflow-building script than point-and-click in the GUI.
* I want GitHub shortcuts on both my personal and work computers, but I have no way to automatically sync my Alfred settings between them.
Having a workflow I can build separately on each machine (and with different config) allows me to keep them consistent.[Alfred Workflow]: https://www.alfredapp.com/workflows/
## Usage
If you want to use this script yourself, you'll need Python installed.
Clone this repo, update the list of repos in `repos.ini`, then run the script:
```
$ python3 create_workflow.py
```This will create a package `github_shortcuts.alfredworkflow` in the repo; open this to get the shortcut.
## Config syntax
This is an example of the repo config:
```
[repos]
alexwlchan =
docstore
dominant_colours
pathscriptswellcomecollection =
wellcomecollection.org (dotorg)storage-service
scanamo =
scanamo
```The GitHub owner is the top-level key, then put one repo per line.
You can put in empty lines to organise the list.By default, the shortcut will trigger for the name of the repo (e.g. `docstore`).
You can override the shortcut by putting an alternative name in brackets (e.g. `(dotorg)`).