An extension for GitHub CLI to browse repositories with fzf
- Quickly browse the README of each repository
- Open URL of the repository in your default browser immediately
gh fzrepo -- An extension for GitHub CLI to browse repositories with fzf
USAGE
gh fzrepo KEYWORDS...
gh fzrepo -h|--help
gh fzrepo -V|--version
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 |
Dependences:
- GitHub CLI v2.0.0+
- junegunn/fzf
gh extension install sheepla/gh-fzrepo
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 {})"
Welcome!