microsoft / microsoft/terminal
Double click to copy entire line and then pasting strips the enter
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
### Windows Terminal version (or Windows build number)
1.9.1942.0
### Other Software
OpenSSH_for_Windows_8.1p1
### Steps to reproduce
Interaction: Automatically copy selection to clipboard: yes
copy paste an entire line in a config for example by double clicking
the entire line is selected
right click to copy paste it
### Expected Behavior
after the right click, I would expect the line to copy paste and include the entire. This behavior is found in PuTTY or Terminator on Linux
Or, at least give an option to copy paste the enter along
### Actual Behavior
The line is copy/pasted, but the enter is stripped and requires the user to actually hit enter to insert the line. For SSH connections on routers and pasting configuration, the automatic enter is really useful
Contributor guide
Research direction
Start by reproducing the double-click selection and right-click copy/paste flow with automatic selection copying enabled, using the reported Windows Terminal and OpenSSH versions. Locate the clipboard handling entry point and existing tests, then confirm that pasting a whole selected line preserves its trailing Enter without requiring a separate keypress.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100