terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Feature request: hot key drop down ala quake/guake/tilda

Open NOFUNEVER opened this issue 7 years ago • 147 comments

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.

NOFUNEVER avatar May 10 '19 05:05 NOFUNEVER

I also wanted to switch from ConEmu to Windows Terminal, but I was missing Quake Style too. If anyone is interested - I created a small app, that stores and pulls windows terminal window (you can add other apps to have this Quake Style if you want to).

Check my repo and all features here: https://github.com/rzym-on/termial-tray

I really hope, that this feature will come by default at some time. For now, feel free to use my little solution.

rzym-on avatar Oct 05 '20 13:10 rzym-on

I also wanted to switch from ConEmu to Windows Terminal, but I was missing Quake Style too. If anyone is interested - I created a small app, that stores and pulls windows terminal window (you can add other apps to have this Quake Style if you want to).

Check my repo and all features here: https://github.com/rzym-on/termial-tray

I really hope, that this feature will come by default at some time. For now, feel free to use my little solution.

Thank you for this. Is there a way to adjust the animation speed of Windows Terminal window appearing.. the same way ConEmu does?

mkanet avatar Oct 05 '20 14:10 mkanet

@mkanet I'd like to redirect discussion about someone else's project to their repo, and keep this thread focused on the issue at hand. Thanks!

zadjii-msft avatar Oct 05 '20 14:10 zadjii-msft

Another idea it could be a parameter to command wt.exe like: -T, --toggle If instance of terminal not exists open a new Else (If active minimize Else restore/activate)

Its like the AutoHotKey logic above but its inside wt.exe and accessible to .lnk shortcuts / global key mappings / windows taskbar Win+Number etc

It would be awesome if you don't need another 3rd party app for this. And I am also addicted to Ctrl+`

nicholasp avatar Nov 24 '20 11:11 nicholasp

Alright so pseudo-update. I've got a prototype in the works in dev/migrie/f/653-QUAKE-MODE, eff18d1ec, which is branched off #8898. It works pretty well so far! It's only got a simple setting for now, "globalHotkey": <chord>, to activate the MRU window. There's lots of other cases that people have wanted, but it does seem like good incremental progress.

I'm slowly putting the spec together in my head. Right now, it looks a bit like:

// If you specify a hotkey like this, then pressing the hotkey will summon the
// MRU Terminal window, wherever it is, no dropdown.
"globalHotkey": "<chord>",

"globalHotkey": 
{
    // The key to press to summon the Terminal
    "key": "<chord>",

    // if true, use a dropdown animation
    "dropdown": bool,

    // If true, minimize the terminal when the global hotkey is pressed and the
    // Terminal is currently active
    "hideWhenVisible": bool,

    // This is the setting I'm the least sure about. We've got lots of different
    // asks, so I want them all to be possible. This is the part that needs
    // workshopping.
    "summonMode": "mostRecentSameDesktop" | "mostRecentAnyDesktop" | "mostRecentMoveToThisDesktop" | "thisMonitor" | "thisMonitorSameDesktop"
}

It obviously needs work to make sure the relevant scenarios are adequately captured. However, I think I might just ship the "simple" version I've got in prototype now, while we work on the elaborate version.

zadjii-msft avatar Jan 29 '21 13:01 zadjii-msft

// This is the setting I'm the least sure about. We've got lots of different // asks, so I want them all to be possible. This is the part that needs // workshopping. "summonMode": "mostRecentSameDesktop" | "mostRecentAnyDesktop" | "mostRecentMoveToThisDesktop" | "thisMonitor" | "thisMonitorSameDesktop"

From what I noticed i.e. recently going through iTerm configuration for 'quake' mode, People tend to have it dropped to a desktop-screen where user's cursor is now.

miqm avatar Jan 29 '21 14:01 miqm

This is fantastic. The only thing I'd want to add is summonMode: "previousLocation or noChange or inPlace", basically I never want the physical window to move unless I move it, this should function similarly to minimizing/restoring a window. One of yours might already cover this but naming this is incredibly challenging!

rlabrecque avatar Jan 30 '21 00:01 rlabrecque

@zadjii-msft Some time in the past I went through this thread taking notes on all the features that people were requesting, and there was one request that I think might be problematic with your current approach: the ability to have multiple hotkeys do different things (e.g. Ctrl+Alt+1 opens the terminal on monitor 1, and Ctrl+Alt+2 opens it on monitor 2).

I don't know much about the command framework, so maybe this doesn't make sense, but I had imagined it might be achieved with a command action, so you could create multiple instances of the action, each with different parameters, and bound to different key chords. Although we're talking about global hotkeys here, so maybe that's not quite the right thing.

Anyway I'm totally in favor of doing things incrementally, so I'm not suggesting we need that functionality right away, but I thought it was worth mentioning in case it affects your basic design.

    // if true, use a dropdown animation
    "dropdown": bool,

This one is minor, but I believe people also wanted to be able to control the dropdown speed, so it might be a good idea to make this an integer dropdownSpeed rather than a bool, even if it's initially just interpreted as on or off.

j4james avatar Jan 30 '21 20:01 j4james

the ability to have multiple hotkeys do different things (e.g. Ctrl+Alt+1 opens the terminal on monitor 1, and Ctrl+Alt+2 opens it on monitor 2).

Ooof. That's a really good point. The way I had it, was just a single global-level keybinding, so having different keybindings for different desktops wouldn't have been possible. I don't want to back myself in here, so I'll need to keep that in mind.

zadjii-msft avatar Feb 01 '21 13:02 zadjii-msft

Okay, I think this is everything that anyone could want from how and where to summon the window

image

Heck if I know what I'm gonna call those properties & enums. But not I'm thinking it's going to bey an action in the list of actions so you can have different keys do different things

// Go to the MRU window, wherever it is
{ "keys": "win+1", "command": { "action": "globalSummon", "summonTarget":"any", "destination": "origin" } },

// activate the MRU window, and move it to this desktop & this monitor
{ "keys": "win+2", "command": { "action": "globalSummon", "summonTarget":"toCurrentMonitor", "destination": "toCurrentDesktop" } },

// activate the MRU window on this desktop
{ "keys": "win+3", "command": { "action": "globalSummon", "summonTarget":"any", "destination": "sameDesktop" } },

// Activate the MRU window on monitor 2 (from any desktop), and place it on the
// current desktop. If there isn't one on monitor 2, make a new one.
{ "keys": "win+4", "command": { "action": "globalSummon", "summonTarget": 2, "destination": "toCurrentDesktop" } },

// Activate the MRU window on monitor 3 (ONLY THIS desktop), or make a new one.
{ "keys": "win+5", "command": { "action": "globalSummon", "summonTarget": 3, "destination": "sameDesktop" } },

// Activate the MRU window on this monitor (from any desktop), and place it on
// the current desktop. If there isn't one on this monitor, make a new one.
{ "keys": "win+6", "command": { "action": "globalSummon", "summonTarget": "forCurrentMonitor", "destination": "toCurrentDesktop" } },

Clearly, those property names are absurd and painful. They'll be sane by the end of a review. The other properties I mentioned earlier would also be included (including a float for dropdownSpeed). Lawdy, I hope I didn't miss some scenario.

zadjii-msft avatar Feb 04 '21 19:02 zadjii-msft

am I missing something or you haven't started working on the hiding action yet? and extending that on toggle?

zakius avatar Feb 05 '21 00:02 zakius

@zakius I'm sorry could you clarify? My current plan is to use the "hideWhenVisible": bool property in the action to let the user pick:

  • when true: if the Terminal Window is currently active when the keybinding is pressed, then minimize the window. Otherwise, try to summon a window
  • when false: if the Terminal Window is currently active when the keybinding is pressed, nothing happens

I'm then planning a whole other setting for "minimize to tray" (thus hiding it from the taskbar). That prototyping I haven't done so much of yet, but I think will be easier?

Is that what you're looking for?

zadjii-msft avatar Feb 05 '21 12:02 zadjii-msft

okay, I understand now, the code already is quite complex but I couldn't see anything related to hiding from taskbar so I wasn't sure if I missed it or you still have to get there

zakius avatar Feb 05 '21 15:02 zakius

Minimize to tray is definitely a completely separate feature IMO.

You could have it minimize to tray whether or not you're using globalSummon 👍

rlabrecque avatar Feb 05 '21 20:02 rlabrecque

I can see now that microsoft terminal will be shipped as a default app on the future version of Windows. Is there any specific date for this feature to be implemented?

dnet890 avatar Mar 22 '21 15:03 dnet890

Nope. If there was, it would be in a more specific milestone then just the broad 2.0.

zadjii-msft avatar Mar 22 '21 15:03 zadjii-msft

another question, so bring the window on the monitor where the cursor currently is, is that covered? is that handled by MRU?

cyberhck avatar Mar 23 '21 06:03 cyberhck

@cyberhck yep, that's covered. I'd go check out #9274 for more details:

{ "keys": "win+6", "command":{ "action":"globalSummon", "monitor": "toCurrent" } },

That'll summon the window to the current monitor.

zadjii-msft avatar Mar 23 '21 11:03 zadjii-msft

because microsoft terminal is younger than conemu. I hope Microsoft terminal is more stable and reliable than conemu

dnet890 avatar Mar 23 '21 11:03 dnet890

Does anyone know which version of MS Terminal will include the hotkey dropdown ala quake feature? I've been using Windows-Terminal-Quake companion app. Honestly, I wouldn't use Terminal without this companion app ...at least, until there's native support for this capability.

mkanet avatar Apr 28 '21 23:04 mkanet