Origami icon indicating copy to clipboard operation
Origami copied to clipboard

Opening the tab in new pane switches the tab

Open Pshemas opened this issue 5 years ago • 1 comments

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\""
    }
}

Pshemas avatar Jan 04 '21 14:01 Pshemas

Does it still work like that for you? Have you tried ST4 also? I've tested now in ST4 and can't reproduce.

rchl avatar Mar 25 '21 22:03 rchl