ConEmu - Windows Explorer: Make "Con Emu Here" open in existing ConEmu Window

3

1

I have ConEmu, Windows Explorer, folder right click, "Con Emu Here" working, however the folder always opens in a new ConEmu Application. I would like the folder to open as a new tab within an existing ConEmu Application. I have the following settings:

  • Menu Item: ConEmu Here
  • Command: {cmd} -cur_console:n -reuse -run "shell"
  • Icon File: C:\Program Files\ConEmu\ConEmu64.exe,0

I pressed the "Register" button after making those changes, I have restarted ConEmu and removed old versions.

Versions:

  • Windows 7
  • ConEmu: 160609 64 Stable

MattG

Posted 2016-06-11T02:28:50.667

Reputation: 133

Answers

7

Looking at the documentation:

Want to run shell in the existing window instead of creating new one? Use /single switch with following /cmd

So I entered the following text, and pressed Register, and it worked.

/single /cmd {cmd} -cur_console:n

Screenshot: (ConEmu changed the command after saving/registering)

The working ConEmu configuration

Nick Grealy

Posted 2016-06-11T02:28:50.667

Reputation: 278

0

Command: {cmd} -cur_console:n -reuse -run "shell"

Awful. With that command you tell:

Run cmd.exe (the task) with parameters -reuse -run "shell". Of course, cmd.exe does not support these switches.

Docs page tells you that ConEmu switches have to be specific before shell command. Specifying them inside out is absolutely illogical.

Moreover. You ask ConEmu about {cmd} task and tells to run shell. What? How ConEmu would decide what to run? Illogical. What is the "shell" at last? Did you write your own command line interpreter "shell.exe"? I doubt.

The following is logical and working. Why it's so hard?

-reuse -run {cmd} -cur_console:n

Maximus

Posted 2016-06-11T02:28:50.667

Reputation: 19 395

Full disclosure - Maximus is the author of ConEmu.

Why it's so hard?

@MattG - I'd suggest providing some feedback - there's obviously a gap between your understanding and the ConEmu documentation...

– Nick Grealy – 2016-06-15T01:02:37.350

Maximus, thanks for a great application! Just some feedback - the tooltip for the Command: input, says: Use '-resuse -run "shell"' to reuse the existing ConEmu window instead of creating a new one. This is misleading, doesn't work, and contradicts the documentation. You might want to update it. Also, -reuse -run {cmd} -cur_console:n doesn't work, and gives the following error message '-reuse' is not recognized as an internal or external command, operable program or batch file..

– Nick Grealy – 2016-06-15T01:37:30.847

>

  • Don't use old builds. 2. Replace "shell" with your actual shell command. These must be obvious.
  • < – Maximus – 2016-06-15T07:00:42.233

    Is 22 hours old? I'm using ConEmuSetup.160612.exe

    – Nick Grealy – 2016-06-15T07:08:22.073

    It's actual. Note about old builds is the first thing to check. Actually, it would be nice if you can suggest text of hint which would be more clear. – Maximus – 2016-06-15T07:13:18.797

    Sure... it's a bit wordy, but how about the following text (with "more details" link) >> Use the '/single' switch to reuse the existing ConEmu window instead of creating a new one. E.g. for windows ‘/single -run {cmd} –cur_console:n'. More details... </>

    – Nick Grealy – 2016-06-15T07:22:05.390