sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
273 stars 14 forks source link

Select previous file when the last file in a file group is staged/unstaged #1822

Open ravindUwU opened 9 months ago

ravindUwU commented 9 months ago

Problem description

In the "files" pane, pressing Enter with a file selected ("selected file"), stages/unstages it, moves it into a new file group (modified/untracked/staged) accordingly, and then selects the next file.

If the selected file is the last file listed in its multi-file group, Sublime Merge selects the first file in the group as the next file. This makes it tedious to review changes from the bottom up because the selection isn't "continuous".

Preferred solution

Sublime Merge selects the file above the selected file as the next file.

Screenshots

https://github.com/sublimehq/sublime_merge/assets/7352580/d9c30f92-1a64-4755-b226-b05fb3887e32

Notice how,