-
-
Notifications
You must be signed in to change notification settings - Fork 605
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
Allow to scroll diffs horizontally #1017
Comments
I am torn here. On one side I would like to postpone this until we have diff rendering rewritten to be able to use delta first (see #358) which should also give us line wrapping. |
Most editors usually configure word wrap, so might be a good idea to make it customizable as well. Like other git clients just use their own config section in |
for sure this will be something to configure 👍 |
@extrawurst Do you already know which direction you want to go? I just had a look at tig to see what it does, and it supports horizontal scrolling in diff views, among others. Would that be an option here? It would at least be reasonably simple to implement I hope. |
yeah I was thinking about testing out horizontal scrolling while focusing on the diff. once we reach back to the left side another left command will select the index/wd side again |
For me personally, this is a very high priority issue since I have very little screen space(due to my UI scaling requirements) and even 100line-long code gets cut off. So if there's any way to speed this up or pointers as for how I can implement it in a way that would be accepted in a PR, that'd be great 🙂 |
I would accept a PR for sure. |
PR #1250 seems unmaintained, anyone up for grabs? |
If it’s still unmaintained next week, I’d like to take a look (I’ll have a few weeks of vacation, and I’ll probably want to code a bit during that time). If anyone else wants to give it a try, go ahead! |
@cruessler seems like you can take it away :) |
@cruessler is going to provide this nice QoL feature for |
Sometimes there are diffs that a longer then console allows. It would be nice to have some kind of horizontal scroll to view whole diff.

First idea how to make it - allow scroll horizontally when right arrow button pressed in diff view. When left arrow pressed - reset horizontal scroll and change focus to changed/staged. It could be not really ergonomic in some cases since diff view resets.
Second idea - allow to reorder panels and make staged and unstaged stand side-by-side on top part and diff on the most of the bottom part of the console. The bad in this case - we need either divide vertical scrolling with buttons other then up/down arrow or make complicated jump keys to change focus back to file panels.
The text was updated successfully, but these errors were encountered: