-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add `gh fzf search` command, which provides live results for `gh search`. The [search] command works differently than the others. There are two different search modes: 1. **gh:** This is the initial mode and nothing is displayed until you type a query. The mode uses GitHub's search syntax, which you can read about in their documentation for [issues & prs], [repos], [commits], and [code]. 2. **fzf:** This is mode used by the rest of the commands, which uses `fzf` search syntax. The mode is displayed in the bottom left corner. Start by searching with GitHub syntax. For example, you may type `author:@me` when using the [issues & prs] subcommands. When you switch modes from `gh` to `fzf`, the list remains the same and the GitHub query is saved to state and cleared from the search bar. You can then use `fzf` syntax to filter the list further. When you switch modes from `fzf` to `gh`, the GitHub query is restored and the list is reloaded. > [!WARNING] > The `search` command is **experimental**, which means it is subject to breaking changes without a major version bump. Please report any bugs you find! [search]: https://github.com/benelan/gh-fzf#search [issues & prs]: https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requests [repos]: https://docs.github.com/en/search-github/searching-on-github/searching-for-repositories [commits]: https://docs.github.com/en/search-github/searching-on-github/searching-commits [code]: https://docs.github.com/en/search-github/searching-on-github/searching-code
- Loading branch information
Showing
2 changed files
with
254 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters