-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: smart filtering of PRs/issues to remote tracked by current dire…
…ctory If the current directory from which you launched gh-dash is a clone of a GitHub repo, this change causes your PR/issue sections to be further “smartly” auto-filtered down to only the PRs/issues for the remote repo tracked by the clone directory from which you launched gh-dash.
- Loading branch information
1 parent
5a1c54e
commit e495592
Showing
11 changed files
with
204 additions
and
50 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: About Smart Filtering | ||
linkTitle: >- | ||
 About Smart Filtering | ||
summary: >- | ||
About the Smart Filtering feature | ||
weight: 3 | ||
--- | ||
|
||
By default, if the directory you launch `gh-dash` from is a clone of a remote GitHub repo (or if you | ||
have the `GH_REPO` environment variable set to a particular remote), then for any of your PR | ||
sections and issue sections with `filters` values in your [configuration](/configuration) that don’t | ||
have an explicit `repo:` field, `gh-dash` adds a `repo:<RepoName>` field to the search-bar value for | ||
them (where _`<RepoName>`_ is the name of the remote repo). | ||
|
||
That is, `gh-dash` further filters those sections down to only the PRs/issues for the GitHub | ||
repo name specified in your `GH_REPO` environment variable — or else the repo name of the remote | ||
tracked by the clone directory from which `gh-dash` launched. | ||
|
||
For that, `gh-dash` first checks and uses the repo name in the `GH_REPO` environment variable (if | ||
you have that set). If `gh-dash` doesn’t find that, then it next checks for the value of the remote | ||
repo name tracked by the clone directory from which you launched `gh-dash` — by looking through all | ||
GitHub remotes configured for that clone in the following order: | ||
|
||
1. `upstream` | ||
2. `github` | ||
3. `origin` | ||
|
||
…and, otherwise, if `gh-dash` finds no remotes with any of those names, then it uses the repo name | ||
for the first remote in the output that `git remote` shows. | ||
|
||
To disable Smart Filtering at launch, set [`smartFilteringAtLaunch`](/configuration/gh-dash/#smartfilteringatlaunch) | ||
to `false` in your [configuration](/configuration). | ||
|
||
To toggle Smart Filtering on or off for the current section you’re currently viewing, either use the | ||
`t` key — or else use whatever custom keybinding you have set for the `togglesearch` builtin in the | ||
`keybindings` section of your [configuration](/configuration). |
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
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
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
Oops, something went wrong.