Skip to content

Split Pane via a context menu #5025

@carlos-zamora

Description

@carlos-zamora

Description of the new feature/enhancement

If you have the dropdown open...

  • Alt click a profile to open an auto sized pane of the profile.

related to #1000

Alternative Implementations

  1. no-auto
    • Alt+Click: vertical split
    • Alt+Shift+Click: horizontal split
  2. customizable split
    • right click opens a flyout with the options "vertical", "horizontal", "auto"
    • Alt+Click/Invoke behavior is defined in your profiles.json

But why bother?

I'm a very visual person. I like to see what profiles I have before opening one, personally.

Also, I forget what each index for the new-pane key binding maps to which profile. So I constantly find myself opening a new pane, seeing that it's the wrong one, closing it, checking the drop down, figuring out the index, then trying the correct key binding. That's on me for being a very visual person, but being able to short-circuit the process into an alt+click would feel pretty natural, I think.

Proposed technical implementation details

This would be pretty easy to implement, actually. For input, we'd just look at how the Settings flyout menu is handled. Then we just call the new-pane function off of TermApp with the profile that we targeted.

If we go with the alternative implementations, the above implementation is fundamentally the same. We'd just call the function with different parameters.

Comments after #5928

#5928 added the ability to split pane by alt+clicking a profile in the new tab flyout. This doesn't entirely close this issue. Though now you can open a pane without keybindings, the user should still be able to choose whether they want a horizontal or vertical pane. This issue has been promoted to track that scenario in particular.

Metadata

Metadata

Assignees

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.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions