Open New Files in Workspace#2043
Conversation
tom-ludwig
left a comment
There was a problem hiding this comment.
LG, just one small question.
CodeEdit/Features/Documents/Controllers/CodeEditDocumentController.swift
Show resolved
Hide resolved
|
Sometimes users may want to open a file in single file mode. Just to be clear, is this only if the file being opened is in an already opened workspace? If this workspace is closed, I would assume it opens as a single file correct? We may provide a path to drag a tab out of the workspace at some point. |
Yes. It only opens the new file in an open workspace if they share a common ancestor in their path. |
Description
When a new file is opened, tries to open it in a nearby workspace. Right now new files are opened in their own window no matter what (eg using
⌘Nor a file URL).The workspace is chosen by proximity, so if a user has
/User/Desktopand/User/Desktop/Projectopen. Opening the file/User/Desktop/Project/MAKEFILEwill open it in theProjectworkspace.Related Issues
Checklist
Screenshots
(please ignore the messed up gutter, it's been fixed in CESE but not cut in a release)
Screen.Recording.2025-05-09.at.10.13.02.AM.mov
Files open to the nearest folder, and bring the window to front.
Screen.Recording.2025-05-09.at.10.24.02.AM.mov