v3.1.0 - keybindings support, repo paths ⌨️
Keybindings for PRs
Run any bash command using Go Templates to embed the current PR data.
Example of opening Neovim and VSCode for PR review:
keybindings:
prs:
- key: c
command: >
tmux new-window -c {{.RepoPath}} '
gh pr checkout {{.PrNumber}} &&
nvim -c ":DiffviewOpen master...{{.HeadRefName}}"
'
- key: v
command: >
cd {{.RepoPath}} &&
code . &&
gh pr checkout {{.PrNumber}}
Repo paths
Specify where each repo is located on disk for use with keybindings:
Access using the {{.RepoPath}} template string.
repoPaths:
dlvhdr/gh-dash: ~/code/gh-dash