1

I have setup cygwin in conemu and it seems that the keybinds i have setup for conemu to change tabs (alt-1, alt-2, etc) are not passed through to conemu when cygwin is active. Instead, they are captured by cygwin window and im seeing something like this in the window

(arg: 123)

which is what i would expect from a cygwin terminal, if i would press alt-1, alt-2 and alt-3. Here is a sample gif that demonstrates the issue (just to make my problem clear).

Is there a way to tell conemu to listen to keybinds before forwarding them to cygwin ? Or a way to tell cygwin to ignore certain keybinds and forward them back to conemu ? (im not sure about the architecture of cygwin/conemu).

user2599522
  • 3,005
  • 2
  • 23
  • 40

2 Answers2

2

But I believe it's all there

One more note about hotkeys. When you are running ChildGui, all keypressed must be passed to that application. That's why most of ConEmu hotkeys will be inaccessible. With exception of hotkeys types ‘Global’, ‘Local’ and hotkeys with ‘Win’ modifier, if option ‘Install keyboard hooks’ is enabled.

And there is Win+Z (default) hotkey.

Switch focus between ConEmu and ChildGui application

At last I do not understand why do you want to use mintty instead of simple bash...

Maximus
  • 10,751
  • 8
  • 47
  • 65
  • Thanks, that switch focus was what i needed. Unfortunately for various reasons im stuck with mintty instead of just running a simple bash shell. Cheers for the help. – user2599522 Dec 22 '14 at 11:09
  • Win+1, Win+2 work as tab keybinds even with cygwin, mintty, etc – 79E09796 Apr 16 '19 at 11:15
1

With the help of the post above i managed to solve my issue.

I used a function in Autohotkey that is active when im in conemu and it sends the combination {win+z, Alt+1} when i press Alt+1.

This way im switching focus+switching window in one key press.

#IfWinActive ahk_class VirtualConsoleClass
{
    !1::
    {
        Send #z ;switch focus
        Send !1 ;change window
        return
    }
}
Community
  • 1
  • 1
user2599522
  • 3,005
  • 2
  • 23
  • 40