Skip to content

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

@ravindUwU

Description

@ravindUwU

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

Carnac_yKSrE6Udv9.mp4

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions