Sublime Forum

Projects and windows and opening files

#1

Hey folks,

I’m attempting to start using sublime text projects more, but I’ve become stumped by something that feels like it should be simple?

So, based on my understanding of projects, they are oriented around folders, correct? The problem I am running into is that if I have multiple projects open (or even a single one), any files that I open up not via that window (ex: via command line or via windows explorer) are basically randomly distributed (based on what window I last had active?..) into my project window(s).

Is there a way to force files that are not in project folders to open up in the default catchall project? Or even better, to have files opened in a folder always be opened in the project window for that folder? I’m not sure how I can search/navigate/open files in a project folder without being boxed in to doing so via sublime text itself, which messes with my normal workflow.

I’ve looked through the project specific settings and haven’t found anything that seems useful for this yet.

Thanks!

0 Likes

#2

Hi Cloaked,

Files you open will always open in the most recently focused Sublime Text window. It’s feasible that there is a way to write a plugin that works around this…

If it’s a sufficient solution though, it’s possible to include several folders in the same project, by doing the following in your project settings:

"folders":
  [
    {
      "path": "/path/to/folder1"
    },
    {
      "path": "/path/to/folder2"
    },
    {
      "path": "/path/to/folder3"
    },
  ],

You can then browse all folders on the left sidebar in the same window, or at least have three windows that all have the same project.

0 Likes