Add tmux 'resize pane -Z' functionality to Windows Terminal pane managment #5788
Labels
Issue-Feature
Complex enough to require an in depth planning process and actual budgeted, scheduled work.
Resolution-Duplicate
There's another issue on the tracker that's pretty much the same thing.
Description of the new feature/enhancement
Consider extending the (awesome 🎉) Windows Terminal split pane functionality to add one more feature inspired from tmux (or Byobu), that is allowing the end-user to toggle maximizing and minimizing the size of a pane.
An excerpt from a tmux man page:
(resize-pane -Z) -> "With -Z, the active pane is toggled between zoomed (occupying the whole of the window) and unzoomed (its normal position in the layout)."
IMO, developers, and sysadmins that typically use split pane functionality also find it convenient to transition to a maximized pane for specialized tasks (running man, tail, ls -alF, kubectl describe, top, etc.). Once complete with the specialized task, these users, restore the pane layout to what they had previously. The transitions in layout are performed via keyboard shortcuts.
While Windows Terminal does presently have split pane functionality it currently has no functionality which would support the common usage scenario as outlined above.
Proposed technical implementation details (optional)
With current pane (i.e. pane with console in focus) if not maximized then save current pane size and maximize pane and annotate tab title with text prefix '(Z)' else restore previously saved pane size and remove '(Z)' text from tab title.
Summary of pane actions:
"alt+shift+z" = zoom/unzoom (maximize, unmaximize)
"alt+shift+-" (minus sign) = split the pane vertically
"alt+shift+|" (pipe/vertical bar symbol) = split the pane horizontally
"ctrl+shift+w" = close pane
Changes/additions to the Windows Terminal defaults.json file:
🔚
The text was updated successfully, but these errors were encountered: