Feature request: hot key drop down ala quake/guake/tilda
The petty thing I miss most when I pop into Windows is having a separate hot key terminal for each of my three monitors. The closest i've ever been to believing in god was when I realized that was obtainable and if you could make that happen in Windows I just might have to kiss you.
Adding my two cents to the discussion, my modified version of the AutoHotKey script provided by @kimbirkelund:
- The hot-key is
Ctrl + ~ - Terminal is set to remain on top
- One thing I thought could be useful was this: if you have your terminal open and you open a window while the terminal is being displayed, if you hide the terminal, it doesn't know about this "new window" and goes back to the old active one. I've been using it for a couple of hours and it seems to be working
UPDATE: I updated my script so that if you switch to another window (alt+tab) for example, it will switch to that window when you hide the terminal
Here's the script, hopefully it's useful for others 🙂:
#Persistent
SetBatchLines, -1
Process, Priority,, High
Gui +LastFound
hWnd := WinExist()
; Subscribe to win-create events to get the activated window
DllCall( "RegisterShellHookWindow", UInt,hWnd )
MsgNum := DllCall( "RegisterWindowMessage", Str,"SHELLHOOK" )
OnMessage(MsgNum, Func("OnWin"))
Return
OnWin(event, hwnd)
{
; WinGetClass, winClass, ahk_id %lParam%
WinGetClass, winClass, ahk_id %hwnd%
if (winClass = "CASCADIA_HOSTING_WINDOW_CLASS")
{
global activatedWindow
activatedWindow = -1
}
else
{
; 1 is HSHELL_WINDOOWCREATED
; 4 is HSHELL_WINDOWACTIVATED
if (event == 1 || event & 4)
{
global activatedWindow
activatedWindow = -1
activatedWindow = %hwnd%
}
}
}
; Toggle windows terminal using Ctrl,`
^`::ToggleTerminal()
ShowAndPositionTerminal()
{
WinShow ahk_class CASCADIA_HOSTING_WINDOW_CLASS
WinActivate ahk_class CASCADIA_HOSTING_WINDOW_CLASS
WinMove, ahk_class CASCADIA_HOSTING_WINDOW_CLASS,, -5, -10, A_ScreenWidth + 10, A_ScreenHeight * 0.7,
Winset, AlwaysOnTop, On, A
}
ToggleTerminal()
{
global activatedWindow
WinMatcher := "ahk_class CASCADIA_HOSTING_WINDOW_CLASS"
DetectHiddenWindows, On
if WinExist(WinMatcher)
{
DetectHiddenWindows, Off
if WinExist(WinMatcher)
{
; Script sees it without detecting hidden windows, so..
WinHide ahk_class CASCADIA_HOSTING_WINDOW_CLASS
if activatedWindow > 0
{
WinActivate, ahk_id, %activatedWindow%
activatedWindow = -1
}
else
{
Send !{Esc}
}
}
; Check if its hidden
else if !WinExist(WinMatcher) || !WinActive(WinMatcher)
{
ShowAndPositionTerminal()
}
}
else
{
Run "%SCOOP%\apps\windows-terminal\current\WindowsTerminal.exe"
Sleep, 1000
ShowAndPositionTerminal()
}
}
@zadjii-msft does that mean a PR won't be merged for a couple/few months? This was the first thing I googled when I installed the terminal - which also thank you so much for creating a real terminal. Super excited
@chazt3n We're pretty heads down on cleaning up some of our bug backlog for 1.0 right now. We're definitely not going to be merging any PRs for this until after we release 1.0 at this point, but this is definitely something we're thinking about pulling in to 2.0.
I can't really give any estimates on when any of those dates are at this point, mostly just "when it's done"
Sorry if this is already covered above as I didn't read the full thread in detail. From a behavior perspective; I think it would be best if we were allowed to chose between 'quake mode' or just foreground existing window/tabs on hot key.
I currently use another console platform which simply gives me a checkbox in the settings to 'foreground the application with Ctrl + ~' but it otherwise fully respects the size and state of my existing window.
This feature is a very very very very nice to have as often we have so many windows and the terminal window (given its almost always not full screen) can get lost in the background.
The most important part is that we don't just have the window scaled to the full width but retaining its title bar. The title bar must ne invisible as well.
Sorry if this is already covered above as I didn't read the full thread in detail. From a behavior perspective; I think it would be best if we were allowed to chose between 'quake mode' or just foreground existing window/tabs on hot key.
It got lost in the hidden items of the thread, but @flyingpie shared a C# program to add the quake style feature. You can find it here, and if you look at Toggler.cs on line 51 and 72 you should be able to modify its behavior so that it only brings the window on the foreground without modifying its size. I have not tried though.
I switched to ahk approach after a while, one of main reasons being I don't have to use VS to build it, but after some fiddling I got really nice results, the basis for it is somewhere in this thread too
note that I use it for Messenger instead as WT misses few more things for me
An alternative solution until there will be a native dropdown mode for Terminal. 😃
After a couple of weeks of usage I can recommend https://eugeny.github.io/terminus/
Nice terminal with aka "quake mode" (Settings > "Dock the terminal" set to Top and "Hotkeys" > "Toggl terminal window" to Ctrl-` ).
It's built on Electron so it's not a "lightweight", but works pretty smoothly with WSL2.
I've enjoyed setting it to the first part of my task bar and using WIN + 1 to open it.
My only problem is I cannot always open it in admin which equals WSL being unusably gimped. SO right click, right click, open as admin - WIN + 1 from then on.
@chazt3n If you want to open in admin using the keyboard it would be: WIN+ALT+1 to open the right click menu for that taskbar item. Menu Key (next to Right CTRL key) or SHIFT+F10 Pick "open as admin" with arrow keys and enter.
@chazt3n @SamHasler no need to do it the hard way. If you hold Shift while open an app, you get a second copy. If you hold Shift and Ctrl while you open an app it opens elevated. That's true whether from the start menu, the run dialog, or the task bar, and whether you open it with the keyboard or by clicking...
In other words, mash down the whole corner of the keyboard before you press 1: Ctrl+Shift+Win+1 will open a new copy elevated.
Related: https://github.com/microsoft/PowerToys/issues/2629.
@Jaykul When I tell people about the magic elevator modifier, they always say "whattttt"
I am actually working on a project like this and would love to collaborate with anyone interested in helping out. I should have an alpha release by the end of the weekend that supports CMD, powershell, and WSL with drop-down style functionality.
I am interested in expanding on guake/yakuake and what they did however with some additional ideas like NOFUNEVER described with being able to use multiple monitors at once but i'm not sure what that would look like.
This is NOT ready for testing yet but I should have an alpha ready for testing by the end of the weekend if anyone is interested in collaborating please mail me at [email protected]. Someone who's good at theming apps and working with Controls in C# would be a big help.
https://github.com/usrcletus/winuake
Please be easy on me, it's in super rough stages lol.
Would love to see this functionality make it in. Extremely pleased with how Windows Terminal works (it's one of the few Windows terminal apps that don't choke and die on the "cmatrix" speed test!). Please include it (when you can :) ), once you're used to this functionality you can't live without it.
This feature is very time saving. Really looking forward to Windows Terminal 2.0
Very much watned feature, would really make the environment switch betwenn Linux and Windows a lot nicer.
Very much watned feature, would really make the environment switch betwenn Linux and Windows a lot nicer.
that would require some of Linux terminal emulators to have all conemu features, Windows already has it all
The team released a roadmap and this issue is in there 🥳 Although it has priority 3 in a scale from 0 to 2 😢
Sorry, our scale actually does go to 3. Whoops! :smile: