Could the command line launcher open directories in existing instances/windows of IntelliJ?
I've noticed that when opening files with the `charm` launcher from PyCharm, the existing IDE instance/window is used, and tab is added to the workspace.
However, when opening directories, there's a new window created.
I usually keep all my projects in one window, using the 'Add to currently opened projects' feature of 'Open Project', so I wonder if it could be done with the `charm` launcher as well?
I imagine I could make a PR at https://github.com/JetBrains/intellij-community but I'm not sure if it'd be accepted, since I couldn't find anyone else requesting this feature.
Any thoughts/suggestions how to proceed?
[I've already done some initial investigation, and it seems the change would be around https://github.com/JetBrains/intellij-community/blob/0b4f7cd8f19f81ea3d5942ed44f01e9f8305b0cf/platform/platform-impl/src/com/intellij/idea/IdeaApplication.java#L302 but still I'd like to know if it's worth spending any more time on it. :)]
Please sign in to leave a comment.
Hi Jerzy,
Sorry for a late reply.
Please clarify what is the need of opening directories like that? PyCharm thinks that you are trying to open a project thus suggesting you to open in a current or a new window.
Hi, no worries, I don't really need it often. :) In my case when I use the `charm` launcher on a directory, it always opens a new window, instead of asking. Only the File->Open dialog does ask to choose between current/new window. In general when I work on many different projects, I'd find it useful to open them from command line. Now I'm forced to use the "Open" dialog which is sometimes less convenient than running `charm [directory]`.
Oh, I see.
I really doubt there is some workaround for that.
Please feel free to submit a feature request about it to our issue tracker using the link https://youtrack.jetbrains.com/issues/PY and let us know if you need any help.