Skip to content

Drag & Drop Tabs to create a Pane #4587

Open

Description

Description of the new feature/enhancement

The current way of splitting panes using written commands or shortcuts is awesome but difficult to discover.
There is already some drag & drop support for reordering tabs. It would be awesome to be able to drag & drop a tab to split a pane in the previous tab. An exemple of user interaction sequence:

  • Open Windows terminal: it shows a single tab with a single pane with powershell
  • Hit ctrl+shift+3 to open a ubuntu tab
  • drag the ubuntu tab > it shows me the previous tab (powershell)
  • using my mouse I can move the ubuntu tab into sensitive zones an preview the resulting split (a bit like Visual Studio/code UI)
  • I can then drop, and get a nice splitted pane.

Optionally, show a popup saying "Want to automate that ? click here to copy an automation script to your clipboard", which would copy a script that would do the same thing.

Proposed technical implementation details (optional)

Well, I am sure it is possible to do that by writing some code :)

Activity

  1. added
    Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.
    on Feb 14, 2020
  2. ghost added
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Feb 14, 2020
  3. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on Feb 14, 2020
  4. simonferquel commented on Feb 14, 2020

    @simonferquel
    Author

    In this context, hard to discover means also "easy to forget"

  5. zadjii-msft commented on Feb 18, 2020

    @zadjii-msft
  6. ghost closed this as completedon Feb 18, 2020
  7. ghost removed
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Feb 18, 2020
  8. ghost added
    Resolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.
    on Feb 18, 2020
  9. ghost removed
    Needs-Tag-FixDoesn't match tag requirements
    on Feb 18, 2020
  10. simonferquel commented on Feb 24, 2020

    @simonferquel
    Author
  11. added
    Area-UserInterfaceIssues pertaining to the user interface of the Console or Terminal
    and removed
    Resolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.
    on Feb 24, 2020
  12. zadjii-msft commented on Feb 24, 2020

    @zadjii-msft
  13. 26 remaining items

  14. zadjii-msft commented on Aug 23, 2023

    @zadjii-msft
    Member

    Dragging and dropping a tab to create a pane is pretty straightforward - we could have some sort of overlay like VS or VSCode.

    Dragging a Pane to somewhere else would probably require #4717 first, so that there's something attached to the pane to drag.

  15. SinanAkkoyun commented on Aug 24, 2023

    @SinanAkkoyun
  16. zadjii-msft commented on Aug 24, 2023

    @zadjii-msft
  17. piradata commented on Aug 30, 2023

    @piradata

    yea, dragging a tab is ok, my point was the pane part. personally i think it is a little ugly the idea of pane title because i like how the windows terminal is "clean" compared to others like terminator, but we also need something draggable

  18. klkvsk commented on Nov 13, 2023

    @klkvsk

    Here's an idea I want to share, what can be done instead of permanently visible drag handles:

    So, by default we have alt-shift-arrow hotkeys to resize pane, alt-shift-plus/minus to create a pane. It is mnemonical that all pane modifications are done with alt-shift.

    I suggest a alt-shift-control combo, that while pressed would enable an overlay mode called Pane Control Mode.

    windows-terminal_pane-control-mode_mockup

    While alt-shift-control is down, we get

    • Pane index hints, because we have "Move pane, index: X" actions, but as of now, how does the user know the correct index? Also, "Focus/Close pane, index: X" actions can be added later.
      This is also a visible marker to know that you're in pane control mode.
    • Borders of panes become resizable with a mouse.
    • Panes become draggable. Dragging one pane to another switches their positions. Dragging pane to tab bar ejects in to a new tab. Dragging out of window ejects to new window.
    • (debatable) hovering over edges of an active pane shows "+" button to add a pane from that side.
  19. piradata commented on Nov 16, 2023

    @piradata

    I suggest a alt-shift-control combo, that while pressed would enable an overlay mode called Pane Control Mode.

    I like this idea Mike Kulakovsky (@klkvsk) , and if we combine this with the lumino demo that Dave Hirschfeld (@dhirschfeld) mentioned would be perfect.

    https://lumino.readthedocs.io/en/latest/examples/dockpanel/index.html

  20. giammin commented on Dec 11, 2024

    @giammin
  21. zadjii-msft commented on Dec 11, 2024

    @zadjii-msft
    Member

    Nope, nothing to update here.

    Though, if this is really bothering you, you could probably use move-pane -t 0 from the commandline mode of the Command Palette to move a pane (a tab) into another tab:

    Image

    (Open the command palette, then backspace to get rid of the >)

  22. giammin commented on Dec 11, 2024

    @giammin

    Nope, nothing to update here.

    Though, if this is really bothering you, you could probably use move-pane -t 0 from the commandline mode of the Command Palette to move a pane (a tab) into another tab:

    Image

    (Open the command palette, then backspace to get rid of the >)

    awesome! this is what I was loking for! thanks

  23. groutoutlook commented on Apr 15, 2026

    @groutoutlook

    Hi,
    can someone explain to me why I can mp -t 0 -V to merge current tab into previous pane vertically, and mp -t 999 -V split them into the new tab of current terminal instance? Very convenient but bit confused about how that works.

    EDIT: oh well the number after option -t is tab index.. now it makes sense. Great feature!

  24. molecula451 commented on Aug 24, 2026

    @molecula451
  25. bugproof commented on Oct 16, 2026

    @bugproof

    bump, I have existing tabs I'd like to create panes from them and also be able to go back to regular tabs

    currently can be done with Ctrl + Shift + P and move-pane -t 0 and to revert move-pane -t 99

  26. Pl8tinium commented on Oct 19, 2026

    @Pl8tinium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-UserInterfaceIssues pertaining to the user interface of the Console or TerminalIssue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Product-TerminalThe new Windows Terminal.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions