Giter Site home page Giter Site logo

alfred-github-star's Introduction

GitHub Star - Alfred Workflow

This workflow is for Alfred, a powerful launcher for MacOS. This workflow allows you to search through your GitHub stared repositories from https://api.github.com/users/{username}/starred.

Download from repo releases or the official Alfred Workflow Gallery. Below is a picture from the Gallery.

Dependency

Alfred 5 with PowerPack

Usage

  • ghs {query} will show you a stared repositories list in time order, with repo name, number of stars and descriptions.
    • on a selected result to directly open the repository in your browser
    • ⌘ + ⏎ to copy the URL to clipboard.
    • ⌃ + ⏎ to copy the git clone command to clipboard.

Setup

  • Set the your GitHub username to username.
  • You can also set a limit for pages retrieved from GitHub's paginated API, your results will include max_pages * 30 recent starred repos. Recommended when you have a large database. Default (-1) fetches all starred repos.
  • Set cache time-to-live in minutes in cache_ttl, default is 60 minutes before the old cache expires.
  • Optionally, if you'd like to take advantage of higher rate-limits, set a GitHub person access token.

Please note the GitHub API currently restricts anonymous requests to a maximum of 60 calls per hour. It is advised not to run the workflow too often when you set cache_ttl at a very small value.

Thanks

  • Jonathan Ströbele's alfred-github-stars. I took the inspiration from him, wrote the code in Python and removed the image caching. (Hopefully it will reduce the caching time if you have large database.)
  • Alfred forum, very helpful community.

alfred-github-star's People

Contributors

yinan-c avatar engin avatar arcaartem 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.