Sublime Forum

Cannot navigate diffs with Page Up/Down and arrow keys

#1

Not sure if it’s a bug but (on Windows) it looks like Page Up/Page Down and arrow keys do not scroll the view on the diff area (it looks like only using the mouse we can scroll).

Is this a known issue or maybe something is not working on my side?

Oh sorry, I’ve found this issue already reported in GitHub:

0 Likes

#2

If a diff hunk has the input focus, then PageUp and PageDown will scroll within that hunk. They don’t however scroll the view if there is more than one hunk; for that you need to use Tab to jump to the next diff hunk.

I don’t know offhand if there are bindings available that would scroll the overall view (i.e. scroll new diff hunks into view). I poked around in the key bindings a bit to see if there is anything that seems like it would do this and didn’t come up with anything.

0 Likes

#3

I’m not sure if I understood it correctly, but it doesn’t look to scroll then we move inside the hunk:

0 Likes

#4

Ah yes, I see what you mean.

That is definitely something that I’ve seen before but it was a while ago (during early beta) so I’d forgotten all about it.

It may be worth checking out the Merge issue tracker to see if someone has reported this or not there, and make a report there if not.

0 Likes

#5

Just in case, I’ve edited my first post before with a link to this issue which is the problem we are talking (I guess).

0 Likes

#6

As far as I can see https://github.com/sublimehq/sublime_merge/issues/36 is still open, and there’s still no way to navigate to next and previous diffs when viewing the entire uncollapsed file.

Tab / Shift-Tab still change focus from the diff window; PageUp/Down still move to top and end of file.

Is this correct or am I missing something?

0 Likes