Skip to content

Commit

Permalink
feat(run): add keybind to filter by in_progress
Browse files Browse the repository at this point in the history
Add `alt-i` keybinding to filter the list, only showing runs that are
in_progress.
  • Loading branch information
benelan committed May 31, 2024
1 parent b4185b7 commit 89580c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ that can be used with any `gh fzf` command:
- `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
- `alt-i`: Filter the list, showing in_progress runs
- **Examples:**
- Filter the initial list to runs for the "tests" workflow:
```sh
Expand Down
3 changes: 2 additions & 1 deletion gh-fzf
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ run_cmd() {
'\'''

run_header="Actions > (enter: watch) (alt-l: logs) (alt-r: rerun) (alt-x: cancel) (alt-n: notify) (alt-p: pr) (alt-d: download)
Filters > (alt-f: failed runs) (alt-b: current branch) (alt-u: current user)
Filters > (alt-f: failed) (alt-i: in_progress) (alt-b: current branch) (alt-u: current user)
$global_binds
"
Expand All @@ -381,6 +381,7 @@ $global_binds
eval "$FZF_DEFAULT_COMMAND --branch $(git symbolic-ref --short HEAD)"
)' \
--bind='alt-f:reload(eval "$FZF_DEFAULT_COMMAND --status failure")' \
--bind='alt-i:reload(eval "$FZF_DEFAULT_COMMAND --status in_progress")' \
--bind='alt-u:reload(
eval "$FZF_DEFAULT_COMMAND --user $(gh api user -q .login)"
)'
Expand Down

0 comments on commit 89580c0

Please sign in to comment.