microsoft / terminal

The new Windows Terminal and the original Windows console host, all in the same place!
MIT License
95.38k stars 8.3k forks source link

Drag entries from the new tab menu to create panes #9229

Open CyprusSocialite opened 3 years ago

CyprusSocialite commented 3 years ago

As I am aware, creating a new pane is currently possible via the [Alt]+[Shift]+[-/=] shortcuts, which allow the user to decide how the existing pane will be split but always use the default profile for the new pane, or by [Alt]+[LMB] clicking on the dropdown menu, which allows a specific profile to be selected but splits the pane automatically.

I think the ability to select both the profile and the orientation of new panes would be desirable. I propose a number of possible approaches:

DHowett commented 3 years ago

Dragging profile names from the [menu]

That's really clever. I don't think we can pull it off, but it's very clever. I like it.

Right now, the predominant ways to achieve what you're looking for are via the command palette (ctrl+shift+p, "Split pane ..." > Profile > Direction) or custom bindings.

It's possible to override the default bindings for alt+shift+- and alt+shift+= to use the "duplicate" split mode. More info here on the split pane docs.

Does that help?

CyprusSocialite commented 3 years ago

Right now, the predominant ways to achieve what you're looking for are via the command palette (ctrl+shift+p, "Split pane ..." > Profile > Direction) or custom bindings.

Admittedly, I wasn't aware of the command palette, so that's good to know for general purposes

It's possible to override the default bindings for alt+shift+- and alt+shift+= to use the "duplicate" split mode. More info here on the split pane docs.

I'm mostly interested in duplicating panes anyway, so this is very helpful. Thank you!

zadjii-msft commented 3 years ago

It sounds like the command palette and the "duplicate pane" options generally fit your other needs. I'm going to leave this open to track the last part of your request -

Dragging profile names from the dropdown menu to the desired position of the new pane with some sort of dynamic preview of how the panes will be split. The most user-friendly and visually pleasing option, but perhaps harder to implement.

Because that's a unique ask that I don't think we've heard before. #4587 is vaguely similar, but with a tab itself, not the dropdown entry.