Skip to content

Opening the tab in new pane switches the tab #157

Description

@Pshemas

I'm trying to use Terminus with Origami to create a build system for Python3. And it almost works correctly.
When I have lets say 3 files opened in the tabs of the main pane - file1.py, file2.py, file3.py with a file1.py being in "focus" and I initiate the build Origami creates new pane, moves the terminus output to it.... but as a result focus on the main pane switches from file1.py to file2.py (basically next to the right).

Is there a way to prevent this, so on the main pane I'll have the same file in focus?

Here's how I set up the build system:

 {
	"target": "terminus_open",
	"auto_close": false,
	"title": "Python Output",
	"timeit": true,
	"post_window_hooks": [
		["carry_file_to_pane", {"direction": "right"}]
	],
    "shell_cmd": "python3 -OO -u \"$file\"",
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python.3",
    "windows":
    {
        "shell_cmd": "py -3 -OO -u \"$file\""
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions