randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.39k stars 81 forks source link

[Feature request] Split view/multiple panes #196

Closed chrispetrou closed 4 years ago

chrispetrou commented 4 years ago

Hi @randy3k ! First of all I'd like to thank you (and all the contributors of course) for this amazing sublime text plugin. I found out about it recently and I find it extremely useful. So I'd like to ask is there is any way to have two terminal sessions opened in two separate panels.

To be more clear is there a way to replicate VS code's functionality shown below:

1

Either e.g. using split view or through a dropdown etc...? I read the documentation and also tried through settings but had no luck so far!

randy3k commented 4 years ago
Screen Shot 2020-02-24 at 3 32 36 PM

It is right at the lower left corner.

chrispetrou commented 4 years ago

Thanks for the quick response - that's indeed useful info, but how do you actually have all those terminals opened in the first place? I must be missing something here, I tried all the combinations with option+control+t etc... but nothing worked so far (I'm on a mac btw).

randy3k commented 4 years ago

Terminus doesn't define any keybindings. You could, for example, define

    {
        "keys": ["super+shift+t"], "command": "terminus_open",
        "args": {
            "cwd": "$file_path",
            "panel_name": "Terminus"
        }
    }

Note: "Terminus" is the only panel name that allows Terminus, Terminus 2 etc. Other value of panel_name would kill any existing terminal with the same name.

chrispetrou commented 4 years ago

Thank you very much! That's exactly what I was looking for!

alejandrovrojas commented 4 years ago

Note: "Terminus" is the only panel name that allows Terminus, Terminus 2 etc. Other value of panel_name would kill any existing terminal with the same name.

@randy3k Is there a particular reason for this? available_panel_name is still checking for existing names and appending an index to the duplicate, so whether the name is the default one or passed as an argument to terminal_open shouldn't make a difference, and would make the function more practical overall.