Skip to content

Commit

Permalink
feat(run): add alt-w keybind to filter by selected workflow
Browse files Browse the repository at this point in the history
The keybinding uses `gh fzf workflow` for selection.
  • Loading branch information
benelan committed Jul 12, 2024
1 parent 26c1d50 commit 48a29dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ that can be used with any `gh fzf` command:
> **NOTE:** The run watching process is executed in the background, so
> closing `gh-fzf` won't prevent the desktop notification from displaying.
> Use `killall gh` to end all `gh` processes, including the run watcher.
- `alt-w`: Filter the list, showing runs for the selected item from
`gh fzf workflow` (see [`workflow`](#workflow))
- `alt-b`: Filter the list, showing runs from the current branch
- `alt-u`: Filter the list, showing runs triggered by you
- `alt-f`: Filter the list, showing failed runs
Expand Down
3 changes: 2 additions & 1 deletion gh-fzf
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ run_cmd() {

# KEYBINDING HINTS {{{2
run_header="Actions > (enter: watch/logs) (alt-r: rerun) (alt-R: rerun failed) (alt-x: cancel) (alt-n: notify) (alt-p: pr) (alt-d: download)
Filters > (alt-f: failed) (alt-i: in_progress) (alt-b: current branch) (alt-u: current user)
Filters > (alt-f: failed) (alt-i: in_progress) (alt-b: current branch) (alt-u: current user) (alt-w: workflow)
$global_binds
"
Expand All @@ -403,6 +403,7 @@ $global_binds
--bind="alt-R:execute(gh run rerun --failed {-1} $REPO_FLAG)+refresh-preview" \
--bind="alt-d:execute(gh run download {-1} $REPO_FLAG)+refresh-preview" \
--bind="alt-x:execute(gh run cancel {-1} $REPO_FLAG)+refresh-preview" \
--bind="alt-w:execute(gh fzf workflow $REPO_FLAG)" \
--bind="alt-n:execute-silent(
gh fzf util notify-run-completed {-1} $REPO_FLAG &
)+refresh-preview" \
Expand Down

0 comments on commit 48a29dd

Please sign in to comment.