New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make multiline ctrl+v paste behaviour default to keep UX consistency #1522

Closed
ahmadalli opened this Issue Apr 22, 2018 · 8 comments

Comments

Projects
3 participants
@ahmadalli

ahmadalli commented Apr 22, 2018

Versions

ConEmu build: 180418 preview x64
OS version: Windows 10 1709 x64
Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): bash on windows

Problem description

Pasting multiline text with ctrl+v is now set to "one line paste" and this is UX inconsistency.

@Maximus5

This comment has been minimized.

Owner

Maximus5 commented Apr 22, 2018

But it is safe.

@Maximus5

This comment has been minimized.

Owner

Maximus5 commented Apr 22, 2018

In most cases you use paste to execute some commands in the prompt. So, by Ctrl+V you get the command pasted and it's ready to be executed by explicit Enter.

@bergmeister

This comment has been minimized.

bergmeister commented Apr 22, 2018

I often paste multiple commands from e.g. a PowerShell script. Just saying.

@ahmadalli

This comment has been minimized.

ahmadalli commented Apr 22, 2018

also, many times (after recent updates which this option was added) I pasted configs (nano in an ssh session) and multiline commands from a tutorial (e.g. apt update \n apt install nginx ) and the fact that the multiline command became one line drove me crazy. for a 10 line config file I needed to copy and paste each line and that's not how copying and pasting should work.
also about safety, I think the fact that ConEmu warns me when I'm pasting a multiline text makes it safe enough.

@Maximus5

This comment has been minimized.

Owner

Maximus5 commented Apr 22, 2018

BTW, Shift+Ins does multiline paste by default

@ahmadalli

This comment has been minimized.

ahmadalli commented Apr 22, 2018

I've seen the settings. What I'm saying is I expect Ctrl + V to work the same everywhere including ConEmu and it did until recently. And this different behavior is a bad UX.

P.S. Instead of Shift+Ins you could've mentioned that I can change this behavior in the settings page (I did the minute I found out it was there)
Also you can switch these: Shift+Ins for one-line past and Ctrl+V for the natural behavior.

@Maximus5

This comment has been minimized.

Owner

Maximus5 commented Apr 22, 2018

You've asked about default Ctrl+V behavior (options for the fresh installation). So I didn't mention any option.

@ahmadalli

This comment has been minimized.

ahmadalli commented Apr 23, 2018

thanks :) but please think about my argument about Ctrl + V consistent behavior.

Maximus5 added a commit that referenced this issue Apr 23, 2018

gh-1522: Exchange **default** behavior of `Ctrl+V` and `Shift+Ins`.
  * `Ctrl+V` inserts multiple lines from clipboard with `\n` inside;
  * `Shift+Ins inserts all lines as single line replacing `\n` with spaces.

  Both may be configured in Settings/Paste.

@Maximus5 Maximus5 added this to To Do in ConEmu via automation Apr 23, 2018

@Maximus5 Maximus5 moved this from To Do to Ready for Testing in ConEmu Apr 23, 2018

@Maximus5 Maximus5 closed this May 1, 2018

ConEmu automation moved this from Ready for Testing to Done May 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment