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.53k stars 572 forks source link

Feature request: Commands textbox/editor; support multi-line commands (long line splitting & continuation) #2414

Open lv-gh opened 2 years ago

lv-gh commented 2 years ago

Long commands line editing is cumbersome due to line wrapping and non-visible line breaks (new lines; which results in a new command, but is completely non obvious)

Picture worth thousands words. conemu_commands_linewrap

I have to guess or forced to check (it could be any):

  1. Either it's line wrapped;
  2. Either there is a line break at at he end of the string and it's already two commands.

AFAICT the easiest way to solve the problem (at least partially, if showing line breaks is not feasible) is to support line continuation/breaking as cmd/bash. Then it would be possible to write visually and structurally appealing command lines:

%windir%\system32\wsl.exe --cd ~ --distribution Ubuntu \
-new_console:p5:m:/mnt

set "LANG=en_US.UTF-8" & \
set MSYSTEM=MINGW64 & \
set CHERE_INVOKING=1 & \
set "PATH=C:\msys64\usr\bin;%PATH%" & \
%ConEmuBaseDirShort%\conemu-msys2-64.exe C:\msys64\usr\bin\bash.exe --login -i \
-new_console:pC:"C:\msys64\mingw64.ico"