terminal icon indicating copy to clipboard operation
terminal copied to clipboard

wt.exe split-pane doesn't work in quake mode

Open CherryWorm opened this issue 3 years ago • 9 comments
trafficstars

Windows Terminal version

1.15.1863.0

Windows build number

10.0.22000.739

Other Software

No response

Steps to reproduce

Open a quake terminal and execute wt.exe -w 0 split-pane

Expected Behavior

The quake terminal to split

Actual Behavior

If a non-quake terminal is already open it is split. Otherwise a new non-quake terminal is opened and immediately split

CherryWorm avatar Jul 08 '22 21:07 CherryWorm

So, because the quake window is "special" (it can be hidden in a way that normal windows can't), it's excluded from the list of recent windows that -w 0 consults.

To split the quake window, you may want to target it specifically: -w _quake will do it.

DHowett avatar Jul 08 '22 22:07 DHowett

Is there any way to detect whether you're in a quake window programatically?

CherryWorm avatar Jul 08 '22 22:07 CherryWorm

... frick. No. Excellent question.

DHowett avatar Jul 08 '22 22:07 DHowett

Huh. Yea maybe that was an oversight when doing #9956. Maybe -w 0 should still work for quake, but "Attach to the most recently used window" should not. Not sure if there's a good way to differentiate between the two, however.

zadjii-msft avatar Jul 11 '22 10:07 zadjii-msft

discussion: Yep, we should totally pull these two code paths apart.

zadjii-msft avatar Jul 11 '22 21:07 zadjii-msft

So is there working solution that enables me to split quake Window (or even better have it split by default? :)

In the docs I see this text:

For example, running wt -w _quake will open a new "quake window". Running that command again will open a new tab in the existing quake window.

BleedingDev avatar Apr 26 '25 20:04 BleedingDev

So is there working solution that enables me to split quake Window (or even better have it split by default? :)

from within a WT terminal already in Quake mode, I can issue the command: wt -w _quake split-pane and that will open a new pane on the right side and put focus there. This is functionally equivalent of doing Alt-Shift-+ from a Quake mode terminal

But there is no command or keystroke that I'm aware of where I can, from a non-Quake mode terminal, cause a split-pane to occur in the Quake-mode window

As far as "by default", I do have a Desktop shortcut where I have the target set to: %LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe -w _quake cmd.exe ; split-pane -d C:\ cmd.exe ; move-focus first and that will launch Quake mode window with two Command Prompt terminal consoles, each in its own pane, and the cursor ready for input in the left-most pane

sgornick avatar Apr 30 '25 00:04 sgornick

Thanks, gonna try! 😊

BleedingDev avatar Apr 30 '25 15:04 BleedingDev

Doesn't work for me, when I call this in opened quake, it creates borderless split window, but not as quake mode. :/

BleedingDev avatar Apr 30 '25 19:04 BleedingDev