Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to see # of line changes in the diff window #3643

Closed
lespea opened this issue Jun 6, 2024 · 1 comment
Closed

Ability to see # of line changes in the diff window #3643

lespea opened this issue Jun 6, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@lespea
Copy link

lespea commented Jun 6, 2024

Is your feature request related to a problem? Please describe.
Maybe there's already a way to do this and I just don't know how, but it would be very useful to me if the "unstaged changes" window showed the # of lines add/removed/changed (or whatever variant works) either at the top of that window or maybe even inline with the file lists (like having the +/- numbers shown to the right of the filenames?).

Describe alternatives you've considered
I don't need that info and continue using the tool without it.

@lespea lespea added the enhancement New feature or request label Jun 6, 2024
stefanhaller added a commit that referenced this issue Dec 8, 2024
…4015)

- **PR Description**
Implements Issue #3643
Adds the number of line changes to the end of each file line in the
Files view.
Also adds the possibility for the user to enable and disable this
feature through the UserConfig.
<img width="323" alt="screenshot"
src="https://github.com/user-attachments/assets/6f818dd4-fbf5-49f2-b338-1b1fcc73f73a">

- **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)
* [ ] Text is internationalised (see
[here](https://github.com/jesseduffield/lazygit/blob/master/CONTRIBUTING.md#internationalisation))
* [x] If a new UserConfig entry was added, make sure it can be
hot-reloaded (see
[here](https://github.com/jesseduffield/lazygit/blob/master/docs/dev/Codebase_Guide.md#using-userconfig))
* [ ] Docs have been updated if necessary
* [x] You've read through your own file changes for silly mistakes etc
@stefanhaller
Copy link
Collaborator

Implemented in #4015.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants