sublimehq/sublime_text

Save As... with a different filename removes item from Open Recent menu

Opened this issue · 0 comments

Description of the bug

Applying Save As... to a file that already has an existing filename removes that existing file from the Open Recent menu, making it difficult to create a copy of a file and have both it and the original open.

Steps to reproduce

  1. Create a file and save it under filenameA.
  2. Go to File > Save As... and name it filenameB.
  3. Since filenameA is no longer open, and try to open it from the Open Recent submenu.

Expected behavior

filenameA is still in the Open Recent submenu, making it easy to re-open the file.

Actual behavior

filenameA is no longer in the Open Recent menu, making it unnecessarily difficult to re-open the file.

Sublime Text build number

4180

Operating system & version

macOS

(Linux) Desktop environment and/or window manager

No response

Additional information

The main use case I have is having a file that I want to create variations of. Ideally I'd use some kind of "save a copy and open it" function, but in the absence of that Save As... + variant filename + reopen would work reasonably well... except it doesn't work.

OpenGL context information

No response