jesseduffield / jesseduffield/lazygit

Support maximizing the commit preview in commit panel and diff area (staged/unstaged) in files panel.

Open
#3,091 2 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

Sometimes I am more interested in reading through the commit and see the code that is changed more than other areas. For that the commit patch panel breaks a lot of lines in side-by-side diff mode because there isn't a way to make it full screen.

![lazygit](https://github.com/jesseduffield/lazygit/assets/270991/273f9262-cee0-467a-b701-d099c697b788)

**There are two ways to solve this**
1. In the `+`,`-` cycling through layouts. There can be a state in which after the commit browsing screen becomes full screen the next `+` makes the commit patches full screen. The same approach can be taken for the changed files panel.
2. Another more general approach is to allow collapse/hide the sidebar which will make the other panel almost full screen by default

**For alternative I am using the default git way like below**
`git diff shorthash^! `

**Additional context**
The above command gives me a diff screen like below. I would like something closer to this so that I can focus on the changes in the commit / changed files

![image](https://github.com/jesseduffield/lazygit/assets/270991/7eb9e14f-5caf-4a72-99de-33f5e8d49bf6)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.