Repository: terminal
Issue: Scenario: Add support for panes 
Labels: Area-UserInterface,Product-Terminal,Issue-Scenario

![image](https://user-images.githubusercontent.com/18356694/68697343-41ea2380-0544-11ea-8218-601b57fdd835.png)

This is the megathread for tracking all the work related to [Panes](https://docs.microsoft.com/en-us/windows/terminal/panes) in the Windows Terminal.


### 1.0 Features

<details>
<summary>1.0 Features</summary>

* [x] Original issue: #532 -> added in #825
* [x] #991 Panes should be resizable with the keyboard. (fixed PR #1207)
* [x] #995 The user should be able to navigate the focus of panes with the keyboard, instead of requiring the mouse. (PR #1910)
* [x] #993 There's no keyboard shortcut for "ClosePane" 
* [x] #998 Open panes with a specific profile 
* [x] #994 There should be some sort of UI to indicate that a particular pane is focused, more than just the blinking cursor. `tmux` accomplishes this by colorizing the separators adjacent to the active pane. Another idea is displaying a small outline around the focused pane (like when tabbing through controls on a webpage). (PR:#3060)
* [x] #999 If you click on the separator's between panes, then no panes will be focused (PR #3540)
* [x] #3045 Moving focus between panes doesn't always work (PR #3958)
* [x] #3544 Add a default keybinding for panes, to enable them by default. (PR #3585)
* [x] #2834 Snap to character grid when resizing window (PR #3181)
* [x] #3960 Automatic splits similar to tiling window managers 

</details>

### 1.x features / bugs
* [x] #1756 The user should be able to configure what profile is used for splitting a pane. Currently, the default profile is used, but it's possible a user might want to create a new pane with the parent pane's profile. 
* [ ] #992 Panes should be resizable with the mouse. The user should be able to drag the separator for a pair of panes, and have the content between them resize as the separator moves. 
* [ ] #4692 Pane focus movement doesn't remember where it came from

### 2.0 Features / Bugs
* [x] #2398 Move focus to the visually adjacent pane, not just the first pane on the other side of the separator.
  - [ ] Also: #4692 Pane focus movement doesn't remember where it came from
* [x] #3062 Add a configuration object for focused vs unfocused state
* [x] #996 The user should be able to zoom a pane, to make the pane take the entire size of the terminal window temporarily.
* [x] #5803 `moveFocus` to pane using number (See also #5464)
* [ ] #3917 Panel split background ignores `requestedTheme`, follows system app mode 
* [x] Add a `percent` parameter to `SplitPane` #3997
* [x] wt split-pane (multiple copies) seems to have occasional focus issues #6586
* [x] #2871 Add ~~`nextPane` and~~ `prevPane` keybindings (in PR #8183)
* [x] #1001 Panes should have an optional motion effect on entrance 
* [x] Panes should have an animation when they're closed, too #7366

### Panes Titlebar Follow-ups - See #4998
* [ ] Add title to split window #4717
* [x] #7075 Allow moving panes to other tabs 
* [ ] Panes should have editable titles #7290

### Backlog items

* [ ] The user should be able to tear-off tabs and dock them as a split (See [this comment](https://github.com/microsoft/terminal/issues/443#issuecomment-519077162))
	* [ ] #4587 Drag & Drop Tabs to create a Pane 
	* [ ] Related, but different: Drag entries from the new tab menu to create panes #9229
* [ ] #997 A pane doesn't necessarily need to host a terminal. It could potentially host another UIElement. One could imagine enabling a user to quickly open up a Browser pane to search for a particular string without needing to leave the terminal. (spec #1080)
* [ ] #3656 Add support for `tmux` Control Mode 
* [x] #2634 Support broadcast input (Spec #9365)
* [ ] #4259 Open a new pane with the environment vars of the parent 
* [x] #4340 Choose Direction to Split Pane 
* [x] A switch panes option? Like a `switchLeft`, `switchRight`, `switchUp`, `switchDown`, to allow the user to rearrange the panes layout (https://github.com/microsoft/terminal/issues/1000#issuecomment-578665067) (#10638)
* [ ] #4922 Swap panes 
* [x] #4941 Please add support closePaneRight/Left/Up/Down 
* [x] #5025 Open panes without keybindings
* [ ] #6002 Split panes equally in size
* [x] #6219 Pass through `moveFocus` keys when the user has no panes 
* [x] #6459 Pane focus follows mouse (PR: #8965)
* [x] Moving focus with a zoomed pane should just zoom the adjacent pane #7215
* [ ] Add a fluent animation for pane zooming #7216
* [ ] Pane opening animation should not flash the default pane backdrop #7365
* [ ] Use a Clip rect for Pane animations instead of the Width/Height #7436
* [ ] Golden Ratio mode #8562
* [ ] #3586 Open a new pane by prompting the user for which profile to use 
* [x] #10665
* [x] #10733
* [ ] #10757 
* [x] #10909 Allow moving through panes in ID order 
* [ ] #12186
* [ ] #16083



### Theming items
* [ ] #3061 Add a setting to manually set the Pane highlight color  ~~(PR #3752)~~
  - [ ] Add configurable Pane border _hover_ color #8564
* [ ] #3063 Add a setting to manually set the Pane border width 
* [ ] #3708 Add option for more subtle pane focus border