Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config options for length of commit hash displayed in commits view (
jesseduffield#3505) - **PR Description** Add a new config option `gui.commitHashLength` to change the length of the commit hash displayed in commits view. default: <img width="472" alt="image" src="https://github.com/jesseduffield/lazygit/assets/98684296/36dced1e-0c74-4dbd-8670-98e17a75d83a"> With config: ```yaml gui: commitHashLength: 3 ``` <img width="463" alt="image" src="https://github.com/jesseduffield/lazygit/assets/98684296/e8023cd8-f138-4af8-ae0e-3661f80206ca"> - Changes - Added the user config option to to `pkg/config/user_config.go` and `schema/config.json` - documented in `docs/Config.md` - Changed the code that displays the hash in `pkg/gui/presentation/commits.go` --- - **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)) * [ ] Tests have been added/updated (see [here](https://github.com/jesseduffield/lazygit/blob/master/pkg/integration/README.md) for the integration test guide) * [ ] 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
- Loading branch information