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

Feature Request: lockstep scrolling in file diff #280

Open
matklad opened this issue Oct 23, 2023 · 1 comment
Open

Feature Request: lockstep scrolling in file diff #280

matklad opened this issue Oct 23, 2023 · 1 comment

Comments

@matklad
Copy link

matklad commented Oct 23, 2023

TL;DR: when I use Magit: Diff File to open a diff to the side, I want the diff to be automatically scrolled to the file position I am in. That is, if I go to the last line in the file, I would also like the diff view to scroll to the last line as well.

Broader context in case this is an XY problem: when reviewing a large, complex pull request, my preferred workflow is to checkout the PR locally, and review the current state of the code (rather than the diff per se). However, I want to still be able to see the diff view to review lines deleted. So, my ideal view would be two-panes, where the left pane is the actual state of the file, and the left pane is a unified diff. Magit: Diff File gives me exactly this, except that I have to scroll the two views manually. If the scrolling was synchronized, that would be perfect!

@matklad
Copy link
Author

matklad commented Oct 23, 2023

Actually, I think this might be even more valuable for status.magit buffer? So that both the active file and the active hunk are revealed.

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

No branches or pull requests

1 participant