terminal
terminal copied to clipboard
wt.exe split-pane doesn't work in quake mode
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
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.
Is there any way to detect whether you're in a quake window programatically?
... frick. No. Excellent question.
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.
discussion: Yep, we should totally pull these two code paths apart.
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 _quakewill open a new "quake window". Running that command again will open a new tab in the existing quake window.
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
Thanks, gonna try! 😊
Doesn't work for me, when I call this in opened quake, it creates borderless split window, but not as quake mode. :/