Skip to content

Feature request: Open file in existing instance from command line #466

@heksesang

Description

@heksesang

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 ~/myproject

Then I open a file from that project in my second terminal window:

$ flow ~/myproject/myfile

Current 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/myfile

When 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions