Terminal: Add support for tab reordering

Created on 7 May 2019  路  10Comments  路  Source: microsoft/terminal

  • Your Windows build number: 10.0.18890.1000

  • What you're doing and what's happening: Attempting to drag tabs to reorder or detach does not work. Tabs stay exactly where they are and show no sign of moving

  • What's wrong / what should be happening instead: Tabs should be able to be reordered and detached.

Area-User Interface Issue-Task Needs-Tag-Fix Product-Terminal Resolution-Fix-Committed

Most helpful comment

Another suggestion to add on top of this feature: add a keyboard shortcut for moving the currently active tab left/right. For instance, in my Chrome I have this configured to Alt+Shift+Left/Right arrow.

All 10 comments

This is because we're using a really early version of the Tab Control. In future versions, it'll be more feature complete. Until then, all we request is patience :)

This one is actually on us. Tammy so kindly hooked up the reordering events for us!

@carlos-zamora even tried hooking them up to TerminalApp, but it underwent immediate and energetic disassembly.

I'm repurposing this for tab reordering and demoting it to a Task. We'll track the (much larger) workitem to do tab tearoff as a deliverable for vBacklog.

Notes/reasoning:

  • Tab reordering is easy.
  • Tab tearoff requires us to answer the following questions:

    • WT.exe is a multi-instance app. How do we drag tabs between _different processes?_

    • Should WT be multi-instance? We may want to single-instance it.



      • If we want to single-instance it we need to design "new window" (part of #1051)



    • We still need to design "new window" for tearoff-without-merge because we need a drop target for the old tab.

Moved tearoff to #1256.

Was about to open up my own issue but found this one - great idea! Just want to add one thing to the suggestion (not sure if it should be a separate issue, seems related?):

In addition to being able to tear off tabs into new windows, it would also be nice to be able to dock tabs onto an existing window, similar to Visual Studio, with support for snapping to quadrants to make it easy to setup a 4 x 4 tab window grid (in this use case, you'd snap left/right tabs first, then snap the last two into quadrants, if that makes sense). And also support other layouts like two tabs on the top half and one full width tab on the bottom (to do this, snap the top two left/right, then drag the bottom tab to the bottom middle line between them).

@JeroMiya You should open a separate issue for your suggestion.

Another suggestion to add on top of this feature: add a keyboard shortcut for moving the currently active tab left/right. For instance, in my Chrome I have this configured to Alt+Shift+Left/Right arrow.

:tada:This issue was addressed in #3478, which has now been successfully released as Windows Terminal Preview v0.7.3291.0.:tada:

Handy links:

Is there any key shortcut to move tab? Mouse dragging is not working too smooth.

@LatinSuD See #3593.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mrmlnc picture mrmlnc  路  3Comments

TayYuanGeng picture TayYuanGeng  路  3Comments

ghvanderweg picture ghvanderweg  路  3Comments

alabuzhev picture alabuzhev  路  3Comments

dev-logan picture dev-logan  路  3Comments