Skip to content

Show file content based on first diff #4427

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

Open
deniciocode opened this issue Mar 26, 2025 · 2 comments
Open

Show file content based on first diff #4427

deniciocode opened this issue Mar 26, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@deniciocode
Copy link

Is your feature request related to a problem? Please describe.
When opening lazygit to browse the files in order to see changes made, no changes are shown if the file has more lines than the current terminal and the diff appears after the shown part of the file.

Describe the solution you'd like
As a user it would be helpful if the diff is shown right away.

Describe alternatives you've considered
To see the change I have to enter the file in order to jump to the diff.

Additional context

Image Image
@deniciocode deniciocode added the enhancement New feature or request label Mar 26, 2025
@mark2185
Copy link
Collaborator

Would reducing diff context size help?

Image

Could you please post your git and lazygit configs? Maybe you override it to some value.

@deniciocode
Copy link
Author

My version

commit=, build date=, build source=homebrew, version=0.48.0, os=darwin, arch=arm64, git version=2.49.0

My git config

[user]
  email = [email protected]
  name = Dennis ...
[push]
  default = simple
[merge]
  tool = vimdiff
[core]
  excludesfile = ~/.gitignore_global
  editor = nvim
[color]
  ui = true
[alias]
  aa = add --all
  br = branch
  cam = commit -am
  ci = commit -v
  c = commit -v
  cia = commit -va
  co = checkout
  cp = cherry-pick
  df = diff
  mt = mergetool
  pl = pull --rebase
  ps = push
  psh = push
  pfw = push --force-with-lease
  pswl = push --force-with-lease
  rb = rebase
  rbi = rebase -i
  root = rev-parse --show-toplevel
  rs = restore
  s = status
  sa = stash
  sm = submodule
  st = status
  si = switch
  sw = switch
[pager]
	branch = false
[init]
	defaultBranch = main
[pull]
	rebase = true

My Lazygit config

keybinding:
  universal:
    quit: "<esc>"
    return: "q"

{ and } do not work for me

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