sublime_merge icon indicating copy to clipboard operation
sublime_merge copied to clipboard

Open ST project directly if a *.sublime-project file is in the root of the repo

Open themilkman opened this issue 4 years ago • 5 comments

Problem description

Taken from here: https://discord.com/channels/280102180189634562/280102180189634562/840548875878268948

hi, I often use "Open Repository in Sublime Text" in Sublime Merge. Is there a way for ST to detect a *.sublime-project that I put in the root of that git repository directory? because I'd still need to "Quick Switch Project" after I open the 'git project' from SM.

Preferred solution

Open the sublime-project directly.

Things to think about

  • Make this configurable?
  • If multiple .sublime-project files are present - offer a list in the command palette ?

themilkman avatar May 10 '21 07:05 themilkman

@themilkman, it sounds like this should reside in the Sublime Text issue tracker, not the Merge one.

srbs avatar May 10 '21 16:05 srbs

@srbs I think it is more the way SM opens the repository directory in ST (pass the project file), not how ST behaves afterwards.

themilkman avatar May 10 '21 17:05 themilkman

Hi @themilkman,

Thanks for sharing this feedback!

We'll require some collaboration from both teams on this one - we may want Sublime Text to do the project discovery, while Sublime Merge passes the correct flags / data to Sublime Text (I'll be consulting with @BenjaminSchaaf on this one :smiley: )

Thanks, - Dylan

dpjohnst avatar May 11 '21 00:05 dpjohnst

I've given an alternate solution in #1611 - I've been using it happily for a couple of years now and it also works when opening files from a shell/command prompt or from a file explorer gui.

adamkerz avatar Feb 15 '23 04:02 adamkerz

FTR, meanwhile I use https://github.com/SublimeText/AutoProjects to work around this topic.

themilkman avatar May 24 '24 07:05 themilkman