Code Monkey home page Code Monkey logo

alfred_shortcuts_github's Introduction

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

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.

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
    pathscripts

wellcomecollection  =
    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)).

alfred_shortcuts_github's People

Contributors

alexwlchan avatar

Stargazers

vancaem avatar Dustin Smith avatar Zac Johnson avatar Mugisha Precieux avatar Christina Warren avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.