Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
/ gh-fzrepo Public archive

πŸš€ An extension for GitHub CLI to browse repositories with fzf

License

Notifications You must be signed in to change notification settings

sheepla/gh-fzrepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ gh-fzrepo

An extension for GitHub CLI to browse repositories with fzf

Demo on asciinema.org

https://asciinema.org/a/435075

asciicast

Features

  • Quickly browse the README of each repository
  • Open URL of the repository in your default browser immediately

Usage

gh fzrepo -- An extension for GitHub CLI to browse repositories with fzf

USAGE
    gh fzrepo KEYWORDS...
    gh fzrepo -h|--help
    gh fzrepo -V|--version

Keybindings

key function
Ctrl+J, Ctrl+N move focus down
Ctrl+K, Ctrl+P move focus up
Enter view README with gh repo view
Ctrl+O open URL of the repository in your default browser
Esc, q quit fzf

Installation

Dependences:

gh extension install sheepla/gh-fzrepo

One Liner Edition

query="..."; gh api "search/repositories?q=${query}" --jq ".items[].full_name" | fzf --preview "gh repo view {}" --bind "enter:execute(gh repo view {})" --bind "ctrl-o:execute(gh repo view -w {})"

Contribution

Welcome!