Sublime Forum

Sublime Text 3 multiple workspace issue

#1

Hi,

I use Sublime Text 3 in my linux and have an issue in using it with multiple workspaces. When I open a file D with ST3 in workspace A and try to open another file C with ST3 in a different workspace B, then it opens a new tab in the existing ST3 session in workspace A. Since there is no file C in workspace A, it just opens a blank tab. This is terrible because it completely defeats the purpose of having multiple workspaces. I have tried hot_exit, remember_open_files and all others to no avail. My only option is to close the first instance and open the file in workspace B again.

Is there a solution for this? If no then I have to look for other editors :frowning:

Karthik

0 Likes

#2

Are you running multiple Sublime Text instances (or perhaps even separate X11 servers?) or are you just using multiple windows? What do you mean by there not being a “file C in workspace A”, the file still exists on disk does it not?

0 Likes

#3

I am trying to open 2 different files with 2 different paths from 2 terminals in different workspaces. Say for example Terminal A in Workspace A has base directory say Documents and Terminal B in Workspace B has base directory Downloads. If i open File A present in Documents directory with ST3 from terminal A (Workspace A) it opens fine. Now if i open File B present in Downloads directory (But this file is not present in Documents directory) with ST3 in terminal B (Workspace B) then what happens is ST3 opens a new tab in the existing instance that i opened from workspace A and appends a tab (naming it File B but its empty since the file doesn’t exist in Documents directory)

0 Likes

#4

The issue is similar to this

0 Likes

#5

ST will open the file on the last focused window, but I’m unable to reproduce the wrong path being opened. What version are you using? Have you tried reverting to a freshly installed state?

0 Likes

#6

Is there a way to tell ST not to open on the last focused window and always open a new window every time a file is opened?

0 Likes

#7

From the command line you can pass the -n flag to open a new window.

0 Likes