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

Line wrap for diff/staging mode (or hunk navigation in files mode) #3558

Open
tipa40 opened this issue May 11, 2024 · 0 comments
Open

Line wrap for diff/staging mode (or hunk navigation in files mode) #3558

tipa40 opened this issue May 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@tipa40
Copy link

tipa40 commented May 11, 2024

Hi,
I would find it very useful with a line wrapping key binding/toggle/config param to get the full line content overview in that mode.

Motivation:
For me the motivation is that I have files where I am storing text files with very long line content where I store paragraph long text in a single line on many places. Making a modification to such paragraph/line will not too rarely put my changes out of initial view when reviewing and commenting my changes for the commit text. Even so in fullscreen mode for the "Staged changes" pane.
I know I have the options to scroll sideways in diff/staging mode or use the files view instead. The reasons I find them insufficient is that scrolling long lines is tedious, and in the files view there is no binding for jumping to next/previous hunk.
If there was a binding for next/previous hunk I would think that it would also suffice as a solution for me. I also tried changing the git->paging->pager to ydiff, but could see that it does not affect the diff/staging mode, only the files mode.
If this is enough motivation for you to implement it though is of course up to you, but would be greatly appreciated! :)

@tipa40 tipa40 added the enhancement New feature or request label May 11, 2024
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

1 participant