Is it possible to re-order Cygwin tabs in Conemu

1

I can re-order 'cmd' tabs in Conemu ( as per Is that possible to reorder tabs in ConEmu?), but the WinAltLeft and WinAltRight shortcuts do not work if the tab has a Cygwin shell in it.

I have tried various combinations of hotkey modifiers but none of them seem to work with the Cygwin shell.

This is problematic because most of the tabs in my ConEmu have Cygwin shells.

I open a Cygwin shell using the following command:

C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico -

Ashutosh Jindal

Posted 2013-09-04T09:21:46.270

Reputation: 322

Answers

3

Cygwin shell is sh.exe!

mintty.exe is another GUI terminal emulator, but not a shell. Are you sure you need it?

When you run GUI application in ConEmu - it put keyboard focus into that child window and does not process keystrokes at all. With the exception of very few globally registered keystrokes.

If you open "Keys & Macro" settings page you may find global hotkey for "Put focus to ConEmu window" (not sure of the exact name). After that you may reorder GUI child applications running in ConEmu tabs.

Upd. New ConEmu builds can reorder tabs by dragging them with mouse.

Maximus

Posted 2013-09-04T09:21:46.270

Reputation: 19 395

The hotkey is "Set focus to child GUI application". In my case it was Win+Z. – Alfergon – 2016-03-10T12:23:37.133

That works. Cheers !! – Ashutosh Jindal – 2013-09-05T07:59:21.557

3

Maximus' answer (both options are correct). I'll quickly jot down a few details (adding this as an answer to use snapshots).

Option 1 : If you use mintty or another terminal emulator

In Settings -> 'Keys & Macro', add a keyboard snapshot for 'Set focus to ConEmu' like so:

enter image description here

Once you do this, you should be able to use this shortcut to focus Conemu and then use the shortcut to re-order.

For example, my shortcuts are setup as in the snapshot:
'Set focus to ConEmu' : WinAltShift1 'Move active tab leftward' : WinAltShiftLeft

So if I have to move a mintty console left/right I use the above in sequence.

This is a generic way of re-orderding tabs if you use ConEmu to run GUI applications.

Option 2 (Simpler, Cygwin Specific): Directly use bash.exe/sh.exe

If I start a new console by directly using the bash or sh.exe, then I can re-order without any issues (there is not need to focus the Conemu window first)

For instance:

C:\dev\cygwin\bin\bash.exe --login -i

enter image description here

Ashutosh Jindal

Posted 2013-09-04T09:21:46.270

Reputation: 322