sublimetext2 - How to start Sublime Text with selected project using a local .sublime-project file? -


i may missing obvious, can't seem solve simple & typical case (with v3 build 3022 on debian or xp, in case matters):

  • start sublime text opening project "myprj", specified on command-line,
  • using default.sublime-project located under project's dir (say "/repo/myprj"),
  • automatically re-opening last open files of project (i.e. workspace),
  • using default.sublime-workspace (also same project dir)
  • but (obviously) not auto-opening other files remembered non-project sessions,
  • and automatically saving open files (to above default.sublime-workspace) on exit.

ideally:

  1. $ sublime_text --project /repo/myprj/default.sublime-project

should work. doesn't (see below).

another approximation seemed reasonable:

  1. setting "hot_exit" , "remember_open_files" false, , invoking st with:

  2. $ sublime_text --data /repo/myprj --project default.sublime-project

but st3 either doesn't find project file (via --data), unless chdir there first (--data seems no longer supported?), , either doesn't auto-open workspace files last time (despite previous "project / save workspace as..."), or, if set "remember_open_files" true, re-opens last open files regardless of project given on command line.

i guess issue workspace file not being handled automatically reason, , i'm missing trivial step somewhere. (the official docs (and the unofficial) seem discuss command-line switches os x only, , asking --help didn't one.)

(please note: wouldn't launch st first, , switch project inside manually, , don't want store sublime-project/-workspace files outside of prj. dir.) lot!

for still looking this, can launch built-in command line tool , launch project (mac osx):

"/applications/sublime text.app/contents/sharedsupport/bin/subl" --project "absolute-path-to-your.sublime-project" 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -