New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`Minimize/Restore (bring to front)` keyboard hotkey #723

Open
mrkishi opened this Issue Jun 12, 2016 · 17 comments

Comments

Projects
None yet
9 participants
@mrkishi

mrkishi commented Jun 12, 2016

Feature request: a Minimize/Restore (bring to front) hotkey.

Behavior

When ConEmu's window is out of focus, it would bring to front.
When it has focus, it would minimize.

Motivation

I can use Minimize/Restore to either restore the window from a minimized state or to minimize it. If the window is out of focus, it'll be minimized.

I can use Restore (bring to front) to focus on ConEmu's window no matter what -- it can be either out of focus or minimized.

Minimize/Restore (bring to front) would be the ideal one-hotkey solution: one press to either focus or minimize ConEmu.

Right now I have to use both of these to activate/deactivate ConEmu. I use bring to front to activate ConEmu and minimize to hide it. I can't use Minimize/Restore to activate it because when the window is out of focus, it doesn't bring it to front, but minimizes it. I don't always want to minimize it, because I also use Always on top. So, at times I want to keep the window open and alt-tab to another window. To get focus back, I'm forced to use bring to front.

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Jun 12, 2016

Owner

You just describe the behavior or "Minimize/Restore (Quake-style hotkey also)" and "Minimize/Restore (alternative)". So I do not see any sense in the suggestion.

Owner

Maximus5 commented Jun 12, 2016

You just describe the behavior or "Minimize/Restore (Quake-style hotkey also)" and "Minimize/Restore (alternative)". So I do not see any sense in the suggestion.

@mrkishi

This comment has been minimized.

Show comment
Hide comment
@mrkishi

mrkishi Jun 12, 2016

@Maximus5 I didn't. The difference is that the Minimize/Restore (Quake-style hotkey also) does not bring to front if the window is out of focus. Instead, it minimizes the window.

mrkishi commented Jun 12, 2016

@Maximus5 I didn't. The difference is that the Minimize/Restore (Quake-style hotkey also) does not bring to front if the window is out of focus. Instead, it minimizes the window.

@mrkishi

This comment has been minimized.

Show comment
Hide comment
@mrkishi

mrkishi Jun 12, 2016

Okay, I figured out the Minimize/Restore hotkey works differently if Always on top is turned on or off.

When it's off, Minimize/Restore works like what I proposed. When it's on, Minimize/Restore doesn't focus on the window.

This is either a feature or a bug. If it's a feature, the proposed new hotkey is still needed for users of Always on top. If it's a bug, there's no need for a new hotkey, but the Minimize/Restore behavior could be fixed to be consistent regardless of the Always on top setting.

mrkishi commented Jun 12, 2016

Okay, I figured out the Minimize/Restore hotkey works differently if Always on top is turned on or off.

When it's off, Minimize/Restore works like what I proposed. When it's on, Minimize/Restore doesn't focus on the window.

This is either a feature or a bug. If it's a feature, the proposed new hotkey is still needed for users of Always on top. If it's a bug, there's no need for a new hotkey, but the Minimize/Restore behavior could be fixed to be consistent regardless of the Always on top setting.

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Jun 12, 2016

Owner

Of course I do not suggest you to enable "Always on top".
Both "Minimize/Restore" hotkeys do bring ConEmu window to front.
min-restore

Owner

Maximus5 commented Jun 12, 2016

Of course I do not suggest you to enable "Always on top".
Both "Minimize/Restore" hotkeys do bring ConEmu window to front.
min-restore

@mrkishi

This comment has been minimized.

Show comment
Hide comment
@mrkishi

mrkishi Jun 12, 2016

As I said before: yes, they do bring it to the front, as long as always on top is disabled.

Why do you not suggest me to enable Always on top? If it's not intended to be used, it shouldn't be an option.

Here, I use ctrl-ç as Minimize/Restore:

After using whatever I need from the always-on-top ConEmu window, pressing Minimize/restore hides it instead of bringing focus back. If that's intended for always on top windows, I stand by the original feature request.

mrkishi commented Jun 12, 2016

As I said before: yes, they do bring it to the front, as long as always on top is disabled.

Why do you not suggest me to enable Always on top? If it's not intended to be used, it shouldn't be an option.

Here, I use ctrl-ç as Minimize/Restore:

After using whatever I need from the always-on-top ConEmu window, pressing Minimize/restore hides it instead of bringing focus back. If that's intended for always on top windows, I stand by the original feature request.

@mrkishi

This comment has been minimized.

Show comment
Hide comment
@mrkishi

mrkishi Jun 12, 2016

Also, I'm willing to help implement this if pointed in the right direction. I'm unfamiliar with ConEmu's codebase, so I'd rather have some idea of where to look. I assume it's not a difficult modification given all it needs to do is already implemented in the other hotkeys.

mrkishi commented Jun 12, 2016

Also, I'm willing to help implement this if pointed in the right direction. I'm unfamiliar with ConEmu's codebase, so I'd rather have some idea of where to look. I assume it's not a difficult modification given all it needs to do is already implemented in the other hotkeys.

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Jun 12, 2016

Owner

Why do you not suggest me to enable Always on top

I misunderstood you originally.

Owner

Maximus5 commented Jun 12, 2016

Why do you not suggest me to enable Always on top

I misunderstood you originally.

@mrkishi

This comment has been minimized.

Show comment
Hide comment
@mrkishi

mrkishi Jun 16, 2016

Just saw you fixed this on the latest release. Thank you! 👍

mrkishi commented Jun 16, 2016

Just saw you fixed this on the latest release. Thank you! 👍

@farzadmf

This comment has been minimized.

Show comment
Hide comment
@farzadmf

farzadmf Jul 13, 2016

As a heavy user of the Guake Terminal on Linux (which I believe is the most popular terminal with quake style option), I think pressing the shortcut key should hide the window if it's open (no matter if has focus or not), and display it if it's hidden.

This is the behavior you see in Guake: if it doesn't have focus and it's visible, you press the key twice, hiding and re-opening the window with focus.

Maybe the best solution is to add an option so that we can choose whether we want the Guake-style functionality (always show/hide regardless of the focus) or the bring-to-front functionality - or maybe we can have different shortcuts for the two things:

  • One shortcut to show/hide (ignoring focus) - just like Guake
  • One shortcut to bring to front

farzadmf commented Jul 13, 2016

As a heavy user of the Guake Terminal on Linux (which I believe is the most popular terminal with quake style option), I think pressing the shortcut key should hide the window if it's open (no matter if has focus or not), and display it if it's hidden.

This is the behavior you see in Guake: if it doesn't have focus and it's visible, you press the key twice, hiding and re-opening the window with focus.

Maybe the best solution is to add an option so that we can choose whether we want the Guake-style functionality (always show/hide regardless of the focus) or the bring-to-front functionality - or maybe we can have different shortcuts for the two things:

  • One shortcut to show/hide (ignoring focus) - just like Guake
  • One shortcut to bring to front

@Maximus5 Maximus5 reopened this Jul 13, 2016

@farzadmf

This comment has been minimized.

Show comment
Hide comment
@farzadmf

farzadmf Jul 23, 2016

Any news on this issue? The funny things is that I was looking at the keyboard shortcuts and I saw that there are two settings:

  • Restore/Minimize
  • Restore (bring to front)

And right now, there is NO difference between the two! So why not just make them do what they say: Restore/Minimize only restores and minimizes, and the other one brings the window to the front (like @mrkishi wanted)

Any news on this issue? The funny things is that I was looking at the keyboard shortcuts and I saw that there are two settings:

  • Restore/Minimize
  • Restore (bring to front)

And right now, there is NO difference between the two! So why not just make them do what they say: Restore/Minimize only restores and minimizes, and the other one brings the window to the front (like @mrkishi wanted)

@aroemen

This comment has been minimized.

Show comment
Hide comment
@aroemen

aroemen Dec 28, 2016

I'm still having issues with the "Minimize/Restore (Quake-style hotkey also)" hotkey on v161206. I have always on top enabled. When I click to a different window (leaving the ConEmu open) and press Ctrl+`, it causes the ConEmu window to reopen rather than close

aroemen commented Dec 28, 2016

I'm still having issues with the "Minimize/Restore (Quake-style hotkey also)" hotkey on v161206. I have always on top enabled. When I click to a different window (leaving the ConEmu open) and press Ctrl+`, it causes the ConEmu window to reopen rather than close

@DrBones

This comment has been minimized.

Show comment
Hide comment
@DrBones

DrBones Jun 8, 2017

Despite the age of the thread, I have still the same issue as @aroemen .
I would like to support @farzadmf suggestion to make the two hotkeys do exactly that. The issue is minor but it is a small nuisance and I believe it could be fixed in a way that makes everyone happy.

Unfortunately I have not much experience coding in C++ but I am willing to help if you point me in the right direction :)

DrBones commented Jun 8, 2017

Despite the age of the thread, I have still the same issue as @aroemen .
I would like to support @farzadmf suggestion to make the two hotkeys do exactly that. The issue is minor but it is a small nuisance and I believe it could be fixed in a way that makes everyone happy.

Unfortunately I have not much experience coding in C++ but I am willing to help if you point me in the right direction :)

@Herjar

This comment has been minimized.

Show comment
Hide comment
@Herjar

Herjar Jun 25, 2017

Same issue here. If console is not in focus it will just reopen rather than close as I want.

Herjar commented Jun 25, 2017

Same issue here. If console is not in focus it will just reopen rather than close as I want.

@redfellow

This comment has been minimized.

Show comment
Hide comment
@redfellow

redfellow Aug 11, 2017

Same issue here.

Same issue here.

@RobertBlackhart

This comment has been minimized.

Show comment
Hide comment
@RobertBlackhart

RobertBlackhart Sep 11, 2017

This issue does also annoy me. One thing that I didn't see in this thread is that the behavior seems to be different in different versions of Windows. I noticed that when I was on Windows 7, the behavior was as expected. That is, regardless of if ConEmu had focus or not, the toggle key would show/hide it. On Windows 10, the toggle key would only show/hide if ConEmu has focus. If it doesn't have focus, then the toggle key will focus is and replay the show animation, even if it was already showing.

This issue does also annoy me. One thing that I didn't see in this thread is that the behavior seems to be different in different versions of Windows. I noticed that when I was on Windows 7, the behavior was as expected. That is, regardless of if ConEmu had focus or not, the toggle key would show/hide it. On Windows 10, the toggle key would only show/hide if ConEmu has focus. If it doesn't have focus, then the toggle key will focus is and replay the show animation, even if it was already showing.

@farzadmf

This comment has been minimized.

Show comment
Hide comment
@farzadmf

farzadmf Sep 11, 2017

I wish we had seen an "official" reply here from the maintainer(s) of the repository. The only workaround that I found for this "non-standard" issue is to enable "auto-hide on focus lose"

I wish we had seen an "official" reply here from the maintainer(s) of the repository. The only workaround that I found for this "non-standard" issue is to enable "auto-hide on focus lose"

@77cc33

This comment has been minimized.

Show comment
Hide comment
@77cc33

77cc33 May 10, 2018

Tick this checkbox "General \ Size & Post \ Restore inactive windows by shortcut key"

After that first shortcut call will first activate window (even it wasn't minimezed before) and second will minimize it, so you don't have to double hit shortcut in case window is not minimized.

77cc33 commented May 10, 2018

Tick this checkbox "General \ Size & Post \ Restore inactive windows by shortcut key"

After that first shortcut call will first activate window (even it wasn't minimezed before) and second will minimize it, so you don't have to double hit shortcut in case window is not minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment