When saving a new file into a folder with folders with tags on the path, instead of using the virtual working directory, the dialog opens with another folder higher up in the path.
Steps to reproduce
create a test project with nested folders, for example mkdir -p finder-tags/without-tag/with-tag/nested
add a tag to the with-tag folder using macOS Finder
open ST subl --safe-mode finder-tags
to get defined starting conditions, context-click on the finder-tags folder in the sidebar and select New File
press Cmd-S and save the file to the finder-tags folder
context-click on the nested folder and select New File
press Cmd-S
Expected behavior
Save dialog opens with the nested folder selected.
Actual behavior
Save dialog opens with the without-tag folder selected.
Sublime Text build number
4169
Operating system & version
macOS 13.6.4 (it also happened with earlier versions)
(Linux) Desktop environment and/or window manager
No response
Additional information
macOS Finder uses extended attributes to save tags, listed with ls -l@. Example attributes for a red tag:
Description of the bug
When saving a new file into a folder with folders with tags on the path, instead of using the virtual working directory, the dialog opens with another folder higher up in the path.
Steps to reproduce
mkdir -p finder-tags/without-tag/with-tag/nested
with-tag
folder using macOS Findersubl --safe-mode finder-tags
finder-tags
folder in the sidebar and selectNew File
finder-tags
foldernested
folder and selectNew File
Expected behavior
Save dialog opens with the
nested
folder selected.Actual behavior
Save dialog opens with the
without-tag
folder selected.Sublime Text build number
4169
Operating system & version
macOS 13.6.4 (it also happened with earlier versions)
(Linux) Desktop environment and/or window manager
No response
Additional information
macOS Finder uses extended attributes to save tags, listed with
ls -l@
. Example attributes for a red tag:When removing the tag, only the
com.apple.FinderInfo
attribute is removed. Then the save dialog works properly again.OpenGL context information
No response