Home Download Buy Blog Forum Support

Dev Build 2103

Dev Build 2103

Postby jps on Tue Aug 23, 2011 4:34 am

Dev Build 2013 is out now, with some changes to project handling.

Projects are now split into two files: a user editable .sublime-project file, and an opaque .sublime-workspace file. .sublime-project files contain information on the folders and settings in the project, while the workspace file contains all the session related data. A .sublime-project file looks something like this:

Code: Select all
{
   "folders":
   [
      {
         "path": "src",
         "file_exclude_patterns": ["*.lua"]
      },
      {
         "path": "/C/data/reference"
      }
   ],
   "settings":
   {
      "tab_size": 8
   }
}


A few comments on this:
- Paths may be relative (to the .sublime-project file location) or absolute, but must be in a unix style on all platforms (e.g., "/C/Windows" rather than "C:\\Windows")
- Folders may have keys "file_exclude_patterns" and "folder_exclude_patterns". These are combined with the global settings of the same name.
- "settings" are file settings, and will take precedence over user file settings, but not syntax specific file settings. Any settings will apply to all open files in the project's window.
- Editing the project via the UI (e.g., dragging a folder onto the window) will cause the .sublime-project file to be rewritten. If you'd like to preserve your comments and formatting, you'll have to avoid doing this.
- Existing .sublime-project files will be converted into two files on load. You shouldn't lose any data when this happens, but I'd recommend backing them up in any case.

I'm planning to also make a change in a future build, where opening a project (via Project/Open Project and Project/Recent Projects) will open it in a new window. The Switch Project menu item will change the project in the current window.

Let me know what you think!
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2103

Postby firefusion on Tue Aug 23, 2011 6:30 am

I'd like it if you could just hold the ALT key when selecting a project from "Switch project" menu and it would cause it to open in a new window. Like in chrome when you enter an address in the bar but want it to open in a new tab.
firefusion
 
Posts: 218
Joined: Fri Oct 16, 2009 7:37 am

Re: Dev Build 2103

Postby sfranky on Tue Aug 23, 2011 6:40 am

firefusion's suggestion makes sense, but I also like how it is now. Switch project is intuitive enough, and opening a project *should* open it in a new window, so I really don't know.. Personally I think I ll be using the second one.

also, thanks for the implementation of the fallback_encoding!!
sfranky
 
Posts: 96
Joined: Mon Oct 19, 2009 10:06 pm

Re: Dev Build 2103

Postby bizoo on Tue Aug 23, 2011 7:47 am

What's the difference between "path" and "mount_points" ?
My project was converted to this:
Code: Select all
{
   "folders":
   {
      "mount_points":
      [
         "/D/DB",
         "/D/C"
      ],
      "file_exclude_patterns": ["*.dcuil"]
   }
}

and the file_exclude_patterns doesn't look to work.

Apart this issue, these additions to the project configuration is exactly what I need.
I'm planning to also make a change in a future build, where opening a project (via Project/Open Project and Project/Recent Projects) will open it in a new window. The Switch Project menu item will change the project in the current window.

Make sense. If you have to work with more than one project at the same time, it's better to have each project in it's own window.
bizoo
 
Posts: 870
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Dev Build 2103

Postby bizoo on Tue Aug 23, 2011 7:49 am

firefusion wrote:I'd like it if you could just hold the ALT key when selecting a project from "Switch project" menu and it would cause it to open in a new window. Like in chrome when you enter an address in the bar but want it to open in a new tab.

+1
bizoo
 
Posts: 870
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Dev Build 2103

Postby jps on Tue Aug 23, 2011 7:51 am

bizoo wrote:What's the difference between "path" and "mount_points"?

mount_points is the old format. Both work, but if you want to use file_exclude_patterns, you'll need to use the "path" style for folders, as the example above does.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2103

Postby jbrooksuk on Tue Aug 23, 2011 9:00 am

The Package Control plugin doesn't seem to work anymore? Coincidence.
jbrooksuk
 
Posts: 753
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Dev Build 2103

Postby lashtal on Tue Aug 23, 2011 9:26 am

Is it possible to exclude folders by path, not by pattern? (as in: exclude /somefolder/xyz, but not /someotherfolder/xyz)
Patterns exclude all "/xyz" in a path.
lashtal
 
Posts: 19
Joined: Tue Oct 12, 2010 5:06 am

Re: Dev Build 2103

Postby hsoft on Tue Aug 23, 2011 12:55 pm

Ah, finally the project-based file/folder exclusion pattern. It looks like I can give ST another try!
hsoft
 
Posts: 12
Joined: Tue Feb 08, 2011 2:40 pm

Re: Dev Build 2103

Postby wbond on Tue Aug 23, 2011 1:15 pm

jbrooksuk wrote:The Package Control plugin doesn't seem to work anymore? Coincidence.


Unfortunately I was not aware of some of the interaction between the Packages, Installed Packages and Pristine Packages folders. Because of this, after the automatic upgrades that went out for Package Control yesterday, Package Control will be deleted off of everyone's machine the next time Sublime Text starts. So the coincidence is that you didn't restart Sublime Text until the upgrade.
wbond
 
Posts: 519
Joined: Mon Feb 28, 2011 5:33 am

Next

Return to General Discussion

Who is online

Users browsing this forum: krskrs and 34 guests