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

[Feature request] Paste option to convert tabs to spaces #2194

Open Zamralik opened 3 years ago

Zamralik commented 3 years ago

Versions

ConEmu build: 201011 x64 OS version: Windows 10 x64 Used shell version: git-bash

Problem description

The tab character trigger autocompletion when pasted, so converting it to a space character would prevent messing with what's pasted.

Mostly SQL requests in my case that I copy/paste from the IDE to the console.

Feature description

Adding a checkbox option below "Allow Windows to POSIX path conversion" that reads "Convert tab to space". Would allow users to have one of the paste mode replace tabs by spaces for convenience.

Thanks

Maximus5 commented 3 years ago

That raises questions

Maximus5 commented 3 years ago

Opposite suggestion.

ConEmu has an option to paste text as one-liner. And here it could be suitable to replace tab with one space as line feed already is replaced.

Zamralik commented 3 years ago

@Maximus5 It's not opposite and I approve. I never said anything about preserving/removing line feed. Extending the paste as one-liner so it can also replace tab with one space would be fine too.

Maximus5 commented 3 years ago

https://conemu.github.io/blog/2020/11/23/Build-201123.html