Skip to content

Wrong File Selected in Sidebar When Saving Another File of the Same Name #6842

@thoran

Description

@thoran

Description of the bug

For early/smaller projects I will sometimes keep a few copies of the same named file around in the project. If I save a new copy with the same name to a different directory (of course) the sidebar (sometimes, but that's another story) will add the new directory into the sidebar, but the sidebar selection remains on the earlier file.

Steps to reproduce

  1. Save a file by any name, eg. foobar.txt to a directory named with the digit 0.
  2. Make some changes, but don't save yet.
  3. Save that same file using "Save As..." to a directory named with a digit 1.
  4. The selected file in the sidebar remains on 0/foobar.txt.

Expected behavior

The selected file in the sidebar should be 1/foobar.txt.

Actual behavior

The selected file in the sidebar is 0/foobar.txt.

Sublime Text build number

4192

Operating system & version

macOS 15.6.1

(Linux) Desktop environment and/or window manager

No response

Additional information

No response

OpenGL context information


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