Open adamkerz opened 1 year ago
:+1:
I'm using it the same way like @adamkerz and would really appreciate having a kind of project-scope like we know it from SublimeText!
After some more research on existing issues, I've found some related:
Propably the oldest issue on this topic seems to be:
Problem description
I often work on multiple projects at once and want to group multiple repos (part of the same project) into one window, but have separate windows for each project. I already do this with SublimeText and it works very well, including being able to put the project name in the title bar.
Preferred solution
SublimeMerge could have a new commandline parameter of
-p/--project_name <foo>
and this would open a new window and set the "project name" for this window tofoo
.smerge -p foo repo1
would open a new window, set the project name tofoo
and openrepo1
.smerge -p foo repo2
would discover that a SublimeMerge window of that project name is already open, activate that window and open repo2 in a new tab.smerge -p bar repo3
would not find a SublimeMerge window with project namebar
and would open a new window and openrepo3
there.Alternatives
A more robust project/workspace style solution like what SublimeText currently has. I'm not sure if that makes so much sense for SublimeMerge, although I guess you could list the repos that should be opened by default?
If so,
smerge --project <path\to\my.sublime_merge_project>
would probably be a consistent way to do this.Note
Whatever the option, ensuring that it's added to both the cmdline
smerge
and guisublime_merge
would be ideal - I usesublime_text
andsublime_merge
from other guis to open files and repos without seeing a command line prompt flash up.