Skip to content

LangLangBart/gh-look

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh look

Drop an emoji, write comments, star repositories, check workflow progress, browse issue trackers, search for repositories, ... all interactively by combining gh with fzf.

%% GitHub seems to not display fontawesome icons
%% https://fontawesome.com/search
%% https://mermaid.js.org/syntax/flowchart.html#basic-support-for-fontawesome

flowchart LR
    subgraph Helper_Keys[ ]
        Help([fa:fa-circle-question ? ᐧ Help])
        ESC([fa:fa-arrow-right-from-bracket esc ᐧ Quit])
    end
    subgraph Overview[ ]
        direction LR
        Search([fa:fa-magnifying-glass Search]) -->|shift+left| Stars([fa:fa-user Stars])
        Stars-->|shift+right| Search
        Search -->|shift+right| Issues([fa:fa-circle-dot Issues])
        Issues -->|shift+left| Search
        subgraph Issue_and_PR[ ]
            Issues --> |shift+right|PullRequests([fa:fa-code-pull-request Pull Requests])
            PullRequests --> |shift+left| Issues
        end
        Issue_and_PR  -->|enter| Comments([fa:fa-comments Comments])  -->|esc| Issue_and_PR
        Workflows([fa:fa-circle-play Workflow Runs]) -->|shift+left| PullRequests
        PullRequests -->|shift+right| Workflows
    end

linkStyle default stroke-width:0.4px
classDef Subgraph_Empty_Style  fill:transparent,stroke-width:0px
class Overview,Helper_Keys Subgraph_Empty_Style
style Issue_and_PR fill:transparent,stroke-width:0.5px,stroke:#5b387c90
Loading

💻 Requirements

brew install fzf gh bat

# install this extension
gh ext install LangLangBart/gh-look
# upgrade
gh ext upgrade LangLangBart/gh-look
# uninstall
gh ext remove LangLangBart/gh-look

👨‍💻 Usage

gh look [Command] [Flags] [Search term]
Command Description Example
i, issue List Issues gh look issue -r cli/cli involves:@me
p, pr List Pull Requests gh look pr -h
r, run List Workflow Runs gh look run -r microsoft/vscode -n 20
s, search Search for GitHub Repositories gh look search -w keycastr
st, star List Starred Repositories gh look star -u ashtom
  • see available Flags for each command with gh look [Command] --help or interactively with ?

💪 Contributing

Note

Pre-commit is a multi-language package manager for pre-commit hooks. You specify a list of hooks you want and pre-commit manages the installation and execution of any hook written in any language before every commit. Source: pre-commit introduction

# install the git hook scripts
pre-commit install --hook-type commit-msg --hook-type pre-commit
# pre-commit installed at .git/hooks/commit-msg
# pre-commit installed at .git/hooks/pre-commit

💁 FAQ

Strange icons

Ordering options

  • to change the order in which elements are listed see for details: GitHub Docs - Searching on GitHub
    • Valid Ordering options: {author-date,committer-date,created,interactions,reactions,updated}-{desc,asc}

Releases

No releases published

Packages

No packages published

Languages