Sublime Forum

Project settings when opened with subl

#1

Hi,

I’ve noticed that if I open a project from command line, using “subl .” project settings like “folder_exclude_patterns” are getting ignored. But If I go to Project menu and open or switch project, these settings are respected.

Furthermore, If I do, from command line in project folder: “subl --project project_name”, Sublime shows an alert box telling “Unable to read project [project_path]”

  • Using Sublime 3047 on Mac OS X
  • project path doesn’t contain any space or other weird chars.
  • the sublime-project file:
{
  "folders":
  
    {
      "path": "/Users/zip/prj/retwisn",
      "follow_symlinks": true,
      "folder_exclude_patterns": "node_modules"]
    }
  ]
}
0 Likes

#2

I’m able to recreate the exact behavior you’ve described.

cd to a directory with “blog.sublime-project”

cd ~/path/to/my/project

use sublime to open the directory.

subl .

I would expect the directory to open, taking into consideration the “blog.sublime-project” file. But that file seems to be ignored.

Also tried this one

subl --project .

But that gives an OS X alert box reading

Finally - this command works but is a little inconvenient.

subl blog.sublime-project

It’d be awesome to just do subl .

Perhaps it’s not intended to work like that?

0 Likes