Sublime Forum

Project manager workaround

#1

As I am missing a project manager I found a usable though not very comfortable workaround by doing it by hand.

Replace %APPDATA% with the full path, i.e. “C:\Dokumente und Einstellungen\Thomas\Anwendungsdaten”
Replace projectname, project_directory etc. with appropriate values

What to do

  • goto “%APPDATA%\Sublime Text\Packages\user”

  • create file “projectname.sublime-project”

  • edit file “%APPDATA%\Sublime Text\Packages\Default\Main.sublime-menu”

example project file format

<project>
	<mount name= "projectname" dir="project_directory" direxclude=".svn"/>
	<mount name="sub_projectdirectory" dir="project_directory\sub_projectdirectory" exclude="*.bak,*.tmp"/>
	<mount name="database" dir="project_directory\sql" include="*.sql"/>
</project>

Possible arguments I detected:

  • expand=“true”

  • flat=“true”

  • include="*.sql"

  • exclude="*.bak"

  • direxclude=".svn"

  • stripExtensions=“true”

supplement for Main.sublime-menu

	<menu caption="Projects">
		<item caption="projectname" command="openProject Packages/User/projectname.sublime-project"/>
	</menu>

Have fun
/tk

0 Likes

#2

thanks, nice!

0 Likes