Skip to content
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

Remove singleLine copy from Shift+Click, CopyOnSelect #5346

Merged
merged 1 commit into from
Apr 14, 2020

Conversation

carlos-zamora
Copy link
Member

Summary of the Pull Request

This fixes an issue where a shift+click selection with copyOnSelect enabled would result in copying the content as a single line.

PR Checklist

Detailed Description of the Pull Request / Additional comments

I've been thinking a lot about this issue and how it relates to the copy/paste discussions we've been having over the past few weeks. Considering that the majority of users want regular copy, it makes sense to default to that in this case too.

If a user wants to perform a special form of copy, it makes sense that they should use their custom keybinding to accomplish that. This kind of behavior aligns with that kind of philosophy.

Validation Steps Performed

The following scenarios were tested with copyOnSelect enabled.

scenario behavior
Perform a shift+click selection content copied w/ newlines
right-click clipboard paste
copy keybinding (singleLine disabled) content copied w/ newlines
copy keybinding (singleLine enabled) content copied as single line

@carlos-zamora carlos-zamora added the Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) label Apr 13, 2020
@carlos-zamora
Copy link
Member Author

@DHowett-MSFT what do you think about this approach? You're probably the most passionate about this feature 😊. I created this PR as a draft to poll your thoughts before we decide on next steps.

@carlos-zamora carlos-zamora marked this pull request as ready for review April 13, 2020 23:20
@DHowett-MSFT DHowett-MSFT merged commit 9dd5f6e into master Apr 14, 2020
@DHowett-MSFT DHowett-MSFT deleted the dev/cazamor/copyonselect-shift-click branch April 14, 2020 20:19
@ghost
Copy link

ghost commented Apr 22, 2020

🎉Windows Terminal Preview v0.11.1121.0 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shift+Click plus copyOnSelect drops newlines :(
3 participants