sublime_merge icon indicating copy to clipboard operation
sublime_merge copied to clipboard

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

Open ravindUwU opened this issue 1 year ago • 0 comments

Problem description

In the "files" pane, pressing Enter with a file selected, 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, if the selected file is the last item in its group.

Screenshots

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

Notice how,

  • With all 4 files untracked and a or c selected individually, pressing Enter selects b and d respectively. The next selection is "continuous".
  • With all 4 files untracked and the last file d selected, pressing Enter selects a instead of c.

ravindUwU avatar Oct 09 '23 10:10 ravindUwU