Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening the tab in new pane switches the tab #157

Open
Pshemas opened this issue Jan 4, 2021 · 1 comment
Open

Opening the tab in new pane switches the tab #157

Pshemas opened this issue Jan 4, 2021 · 1 comment

Comments

@Pshemas
Copy link

Pshemas commented Jan 4, 2021

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\""
    }
}
@rchl
Copy link
Member

rchl commented Mar 25, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants