-
Notifications
You must be signed in to change notification settings - Fork 84
Description
When I open a file myfile from the command line and myfile is already in a project that is open in an existing instance of flow, it would be nice if it was possible to pass a parameter to make it open myfile in that existing instance instead of starting a new instance of flow.
Would be very useful for workflows where you have a separate terminal where you need to open files from the project, but you want the file opened in the instance you're coding in already.
Example
I open a project in my first terminal window:
$ flow ~/myprojectThen I open a file from that project in my second terminal window:
$ flow ~/myproject/myfileCurrent behaviour is that myfile is opened in a new instance in the second terminal window, but I'd like it to open the file as a new tab in the instance running in my first terminal window:
$ flow --reuse-instance ~/myproject/myfileWhen I'm passing the --reuse-instance parameter it will reuse an existing instance that has the project open and I can keep using this terminal window to other stuff.