Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add shortcuts for filtering files by status (#3137)
- 's' for showing only staged files - 'u' for showing only unstaged files - 'r' for resetting the filter - **PR Description** - **Please check if the PR fulfills these requirements** * [x] Cheatsheets are up-to-date (run `go generate ./...`) * [x] Code has been formatted (see [here](https://github.com/jesseduffield/lazygit/blob/master/CONTRIBUTING.md#code-formatting)) * [x] Tests have been added/updated (see [here](https://github.com/jesseduffield/lazygit/blob/master/pkg/integration/README.md) for the integration test guide) * [x] Text is internationalised (see [here](https://github.com/jesseduffield/lazygit/blob/master/CONTRIBUTING.md#internationalisation)) * [x] Docs (specifically `docs/Config.md`) have been updated if necessary * [x] You've read through your own file changes for silly mistakes etc <!-- Be sure to name your PR with an imperative e.g. 'Add worktrees view' see https://github.com/jesseduffield/lazygit/releases/tag/v0.40.0 for examples --> I've thought about adding `disabled` reasons for them but they kinda don't make sense since if there are only `unstaged` files, disabling the `Show only staged files` makes no sense because the `Show only unstaged files` shows nothing different so we should disable that too, and then what's the point of having a menu if everything except for `reset` is disabled.
- Loading branch information