sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
276 stars 14 forks source link

Each window associated with "projects", like SublimeText #1722

Open adamkerz opened 1 year ago

adamkerz commented 1 year ago

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 to foo.

  1. With no windows open, running smerge -p foo repo1 would open a new window, set the project name to foo and open repo1.
  2. Then running 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.
  3. Then running smerge -p bar repo3 would not find a SublimeMerge window with project name bar and would open a new window and open repo3 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 gui sublime_merge would be ideal - I use sublime_text and sublime_merge from other guis to open files and repos without seeing a command line prompt flash up.

carstingaxion commented 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!

carstingaxion commented 1 year ago

After some more research on existing issues, I've found some related:

Propably the oldest issue on this topic seems to be: