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.57k stars 573 forks source link

need setting to disable POSIX mapping on mouse paste #2015

Open aperomsik opened 4 years ago

aperomsik commented 4 years ago

Versions

ConEmu build: 191012 x64 OS version: Windows 10 1909 x64 Used shell version: cygwin tcsh

Problem description

No setting found for controlling POSIX mapping when pasting by mouse click.

Steps to reproduce

Text appears in the console: c:/home/peromsik . (To get it there I ran "cygpath -m $HOME.") I select, using the mouse, c:/home If I paste using shift + insert, I get c:/home as desired (because POSIX mapping is unchecked for Paste Method 2) . But if I paste using the mouse, POSIX mapping is invoked and I get /cygdrive/c/home instead . There is a setting for the former, but not for the latter.

patricknelson commented 3 years ago

I think I have a very similar issue. I paste C:\Users\patnelson\Desktop\Consoles\ConEmu via mouse click, but it always results in /mnt/c/Users/patnelson/Desktop/Consoles/ConEmu when I right click (wrapped in single quotes if there's a space). I simply want what I have my clipboard to be what is pasted; not to mention the fact that this path doesn't work in my bash.exe anyway. 😔

See below. NOTE: Brand new user here, so maybe I'm missing something?

2020-12-12_22-40-41

siprbaum commented 3 years ago

I agree this is confusing. I was bitten by this as well, there is a way to configure the paste behaviour when using the keybaord, but not when using the mouse. It will always to the path conversion when pasting a windows path to the terminal :-( Either the mouse paste should use one of the configured keyboard shortcuts, e.g. pasting with the mouse is equivalent to e.g. pressing Ctrl+V or a comple new dedicated entry for the mouse paste shall be added.

image

Maximus5 commented 3 years ago

I will check the possibility of adding an option. For now, the workaround could be using a GuiMacro, assigned to RClick. https://conemu.github.io/en/GuiMacro.html#Paste

JFI, if the automatically detected prefix doesn't work, you may setup the correct one with -new_console:m:... https://conemu.github.io/en/NewConsole.html#syntax

kaibenn commented 2 years ago

I have the same problem, using cygwin zsh in ConEmu on Windows 10. Are there any news?

m1lhaus commented 1 year ago

Hi, any news about this. Seems like trivial fix. It seems that Conemu detects my docker Windows containers wrong and does this conversion every time. It is really annoying. Thx