Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.55k stars 571 forks source link

executing a .bat batch file in Far/ConEmu opens a new standalone window instead of a new tab in the existing ConEmu window #2362

Closed kai-uwe-rommel closed 2 years ago

kai-uwe-rommel commented 3 years ago

Versions

ConEmu build: 210822 x64 OS version: Windows 21H1 x64 Used shell version: FAR 3.0.5700.0 x64 or newer

Problem description

Due to https://github.com/Maximus5/ConEmu/issues/2360 I had updated my ConEmu to the latest version 210822 to see if the problem goes away. It doesn't (hence that other issue) but I noticed another oddity. When typing a command into the command line and executing it with Shift-Enter, for an eternity already FAR/ConEmu started such commands in a new ConEmu tab. This still works except when I start a .bat batch file this way. If I do so, then Far/ConEmu starts it in a new standalone window on the screen and not in another tab in the existing window. I have not found a setting which would allow me to correct this. So I reverted to my previous ConEmu version 210128 and the problem went away. The problem does not happen when Shift-Enter-starting some .exe program.

Steps to reproduce

  1. Use ConEmu 210822 with FAR.
  2. In Far command line type the name of a batch file (xxx.bat) and start it with Shift-Enter.
  3. See the command being started in a new window instead of a new tab in the existing window.

Actual results

A new (unwanted) top level window is opened for the .bat batch file.

Expected results

It should be started in a new tab of the current windows as before.

Maximus5 commented 3 years ago

That's interesting ;) Because I've never used this "feature". My way to run new console in far - use Shift+Enter macro: https://github.com/Maximus5/ConEmu/blob/master/Release/ConEmu/Far3_lua/ConEmu.ShiftEnter.lua

kai-uwe-rommel commented 3 years ago

Ok, thanks for the hint. I had not installed the ConEmu macro files into my profile. Using the ConEmu.ShiftEnter.lua I can solve the problem.