Skip to main content

Alfred GitHub Workflow.

Project description

Documentation Status https://github.com/MacHu-GWU/afwf_github-project/actions/workflows/main.yml/badge.svg https://codecov.io/gh/MacHu-GWU/afwf_github-project/branch/main/graph/badge.svg https://img.shields.io/pypi/v/afwf-github.svg https://img.shields.io/pypi/l/afwf-github.svg https://img.shields.io/pypi/pyversions/afwf-github.svg https://img.shields.io/badge/✍️_Release_History!--None.svg?style=social&logo=github https://img.shields.io/badge/⭐_Star_me_on_GitHub!--None.svg?style=social&logo=github
https://img.shields.io/badge/Link-API-blue.svg https://img.shields.io/badge/Link-Install-blue.svg https://img.shields.io/badge/Link-GitHub-blue.svg https://img.shields.io/badge/Link-Submit_Issue-blue.svg https://img.shields.io/badge/Link-Request_Feature-blue.svg https://img.shields.io/badge/Link-Download-blue.svg

Welcome to afwf_github Documentation

https://afwf-github.readthedocs.io/en/latest/_static/afwf_github-logo.png

It is an Alfred Workflow for GitHub operations. There already is a PHP alfred-github-workflow library for this. But the searching is based on Alfred built-in word level filtering, which doesn’t allow any typo, fuzzy, and full text search. This project aims to provide the best searching experience powered by tantivy (via sayt2), a Rust-based full-text search engine.

Install

  1. Make sure you have Alfred 5 + installed and bought the Power Pack.

  2. Go to Release, download the latest release.

  3. Double click the file to install.

  4. Prepare your GitHub Personal Access Token: go to https://github.com/settings/tokens, create a new token, make sure you checked repo -> public_repo, admin:org -> read:org, admin:enterprise -> read:enterprise so the workflow can get your public repo name and url information. If you want to get your private repo as well, you should check repo (Full control of private repositories).

Usage

  1. Configuration.

    In Alfred UI, type gh-config, it should open the ~/.alfred-afwf/afwf_github/config.json``

    https://github.com/MacHu-GWU/afwf_github-project/assets/6800411/2acff3ad-8a90-4326-8f64-3a54df2da11f
  2. Build Index

    In Alfred UI, type gh-rebuild-index, it should start to crawl your GitHub repos. It will take a while to finish. You can check the progress in the ~/.alfred-afwf/afwf_github/.repo_index/

    https://github.com/MacHu-GWU/afwf_github-project/assets/6800411/59ce941d-a22a-4fb5-8013-c6a14ec5ca56
  3. Search GitHub

    In Alfred UI, type gh ${query}, it should show the following UI:

    https://github.com/MacHu-GWU/afwf_github-project/assets/6800411/57ea7aa5-d2e0-4b73-8e66-632453418d92
  4. Open Git Repo in Browser

    Copy any absolute path of a file in any git repo, type gh-view-in-browser ${path} then hit Enter, it should open the repo in browser.

    https://github.com/MacHu-GWU/afwf_github-project/assets/6800411/e863fac8-e9b0-4301-93c0-d745059e4346

Trouble Shooting

  1. gh ${query} doesn’t show any result.

    Check the ${HOME}/.alfred-afwf/afwf_github/ folder, if there’s no folder name equal to your github username(where to store the index), it means the Workflow failed to crawl your GitHub repos. Please double check ${HOME}/.alfred-afwf/afwf_github/config.json to make sure you have the correct GitHub Personal Access Token.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

afwf_github-1.0.3.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

afwf_github-1.0.3-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file afwf_github-1.0.3.tar.gz.

File metadata

  • Download URL: afwf_github-1.0.3.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for afwf_github-1.0.3.tar.gz
Algorithm Hash digest
SHA256 6492bf08b5dfca630fee2936aa90b557506850457304a59ca4406c84e0beb44e
MD5 f4deda2b152bf5579d4593b03e41f6ef
BLAKE2b-256 12d30a7b423958db9aae4c25ce34dd9b878acfbd2205d11c5c30561d94b48561

See more details on using hashes here.

File details

Details for the file afwf_github-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: afwf_github-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for afwf_github-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b5cfa5f0235c5d699325f6343959ed0ff7c4e08ed3adc11d8d1af246eea5e747
MD5 56155495384841ecebee42b2a6164b7c
BLAKE2b-256 40e681497e3e62f993ec41a9025b42c2a557c4a56f67ad03f7fa5a71d569a7c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page