You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+53-15Lines changed: 53 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -12,28 +12,39 @@ An fzf wrapper around the GitHub CLI.
12
12
-[`run`](#run)
13
13
-[Configuration](#configuration)
14
14
-[Related projects](#related-projects)
15
-
<!--toc:end-->
15
+
16
+
<!--toc:end-->
16
17
17
18
## Installation
18
19
19
-
1. Install [`gh`](https://github.com/cli/cli#installation) and [`fzf`](https://github.com/junegunn/fzf#installation) if you don't already have them. For example:
20
+
1. Install [`gh`](https://github.com/cli/cli#installation) and
21
+
[`fzf`](https://github.com/junegunn/fzf#installation) if you don't already have
22
+
them. For example:
20
23
-**Homebrew:**`brew install gh fzf`
21
24
-**DNF:**`sudo dnf install gh fzf`
22
25
- ... see the links above for other package managers
23
26
2. Authenticate with the GitHub CLI: `gh auth login`
24
27
3. Install the extension: `gh extension install benelan/gh-fzf`
25
28
4.[???](#usage)
26
-
5. PROFIT
29
+
5.**PROFIT**
27
30
28
31
## Usage
29
32
30
33
```sh
31
34
gh fzf <command> [flags]
32
35
```
33
36
34
-
The extension adds a new command that wraps GitHub's "list" subcommands with fzf to make them fuzzy findable. All of the arguments after `<command>` are passed directly to `gh`. Because of the way shell works, you need to escape quotes required by GitHub, e.g. [strings with whitespace](https://docs.github.com/en/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#use-quotation-marks-for-queries-with-whitespace). There are example usages for each command in the sections below.
37
+
This extension adds a new command that wraps GitHub's "list" subcommands with
38
+
fzf to make them fuzzy findable. All of the arguments after `<command>` are
39
+
passed directly to `gh`. Because of the way shell works, you need to escape
40
+
quotes required by GitHub, e.g.
41
+
[strings with whitespace](https://docs.github.com/en/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#use-quotation-marks-for-queries-with-whitespace).
42
+
There are example usages for each command in the sections below.
35
43
36
-
A preview of the current selection is displayed when navigating through the resulting list. Each command has keybindings to further filter the list or to call other `gh` subcommands on the item. There are also a few global keybindings that can be used with any `gh fzf` command:
44
+
A preview of the current selection is displayed when navigating through the
45
+
resulting list. Each command has keybindings to further filter the list or to
46
+
call other `gh` subcommands on the item. There are also a few global
47
+
keybindings that can be used with any `gh fzf` command:
37
48
38
49
-`ctrl-o`: Open the selected item in the browser
39
50
-`ctrl-y`: Copy the selected item's URL to the clipboard
@@ -58,8 +69,17 @@ A preview of the current selection is displayed when navigating through the resu
58
69
-`alt-m`: Filter the list, showing issues where you are mentioned
59
70
-`alt-s`: Filter the list, showing issues with any state (open or closed)
60
71
-**Examples:**
61
-
-`gh fzf issue --assignee @me --milestone "v1.33.7" --state all`: Filter the initial list to open and closed issues assigned to you in the "v1.33.7" milestone.
62
-
-`gh fzf i -S \'no:assignee label:\"good first issue\" milestone:backburner'`: Filter the initial list to issues with the "good first issue" label, no assignee, and in the "backburner" milestone. Uses [GitHub's search syntax](https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requests).
72
+
- Filter the initial list to open and closed issues assigned to you in the
73
+
"v1.33.7" milestone:
74
+
```sh
75
+
gh fzf issue --assignee @me --milestone "v1.33.7" --state all
76
+
```
77
+
- Filter the initial list to issues with the "good first issue" label,
78
+
no assignee, and in the "backburner" milestone. Uses
gh fzf i -S \'no:assignee label:\"good first issue\" milestone:backburner\'
82
+
```
63
83
64
84
### `pr`
65
85
@@ -80,10 +100,20 @@ A preview of the current selection is displayed when navigating through the resu
80
100
- `alt-a`: Filter the list, showing pull requests assigned to you
81
101
- `alt-A`: Filter the list, showing pull requests authored by you
82
102
- `alt-b`: Filter the list, showing pull requests from the current branch
83
-
-`alt-s`: Filter the list, showing pull requests with any state (open, closed, or merged)
103
+
- `alt-s`: Filter the list, showing pull requests with any state
104
+
(open, closed, or merged)
84
105
- **Examples:**
85
-
-`gh fzf pr --state merged --author @me --label \"breaking change\"`: Filter the initial list to your merged pull requests with the "breaking change" label
86
-
-`gh fzf p -S \'merged:">=2023-01-01" \"breaking change\" in:body author:@me\'`: Filter the initial list to your pull requests merged since the beginning of 2023 that have "breaking change" in the body. Uses [GitHub's search syntax](https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requests).
106
+
- Filter the initial list to your merged pull requests with the
0 commit comments