Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Pasting not working in Windows Terminal #310

Open
1 of 6 tasks
paperclipstudio opened this issue Jul 21, 2020 · 11 comments
Open
1 of 6 tasks

Pasting not working in Windows Terminal #310

paperclipstudio opened this issue Jul 21, 2020 · 11 comments
Labels
bug Something isn't working

Comments

@paperclipstudio
Copy link

How have you installed cordless

  • Arch User Repository
  • Snap
  • scoop
  • brew
  • go get
  • git clone & go build .

What happened

So when I use cordless though powershell (or cmd) though windows terminal I get a weird pasting error where some of the charaters are lost. for example if I am pasting the link
https://spectacular-diagnostics.bandcamp.com/album/thebeautifulmusic
I might get
https://specalbum/thebe
Or if I hold down paste I get a run such as
https://spectbum/thebeauhttps://spect/album/thebeahttps://specthebeautifulmushttps: //spect/album/thebeauhttps://spectaclbum/thebeautifuhttps://spectacthebeautifulmusichttps://spectaculardtifulmusichttps://spectaculaum/thebeautifulmusic which should just be pasting the once.
This doesn't happen if I run it directly though powershell or cmd.
Also doesn't happen when just pasting into powershell though windows terminal

How do you reproduce this bug

Open windows Terminal
Copy "this is some random text to paste into cordless though windows terminal"
Paste into Windows Terminal
"this is some random text to paste into cordless though windows terminal"
You should see the same text
Run cordless
paste into message window
You should see something like
"this is soms though win
also
hold down paste for 5 seconds.
and you should get something like
"this is som"this is soms"this is soms"this is son "this is soms "this is sos though win"this is so win"this is sough win "this is soms thoug"this is soms "this is soms though"this is so"this is soms thoughw"this is soms thoug"this isi"this is"this is "this is"this is "this ih"this is"this i"this ig"this in"thist"thi"this is"this iw"this i"this g"this i"this "this "this i"this i"this i"this i"this "this "this "this "thi"this"this

Hints on what could've happened

I think its to do with key reconition.
It feels like paste is being sent many times from just a single button press and they are clashing with one another
but that is just a thory

System information

| Key | Value |
| | - |
| OS | Windows 10 v2004 |
| Architecture | Intel i5-8250U 64bit|

@Bios-Marcel
Copy link
Owner

So, this is most likely a problem in github.com/gdamore/tcell

Either way, I don't have windows and therefore won't look into this. Sry ~

@paperclipstudio
Copy link
Author

Thats ok! 👍
If its a issue that someone else has I'll take a look.

@Bios-Marcel Bios-Marcel added the bug Something isn't working label Jul 21, 2020
@hazre
Copy link

hazre commented Aug 5, 2020

I had this issue as well, which forced to use WSL 2 with go get installation as an alternative.

@Bios-Marcel
Copy link
Owner

Btw, the problem is probably this: gdamore/tcell#319 (comment)

I totally forgot about it :D

@Bios-Marcel
Copy link
Owner

Seems like it'll be fixed with the next version of tcell 👍

@NicTanghe
Copy link

i cant get anything to work in the windows terminal not even the colours work and after selecting change chortcut and exiting the menu nothing responds to anything.

@Bios-Marcel
Copy link
Owner

Welcome to the old windows terminal, it's trash. Just get the new one.

@NicTanghe
Copy link

i was refering to the new one

@Bios-Marcel
Copy link
Owner

That'S a surprise then. I had quite a good experience with it. Can you make a new issue with an exact description of the problems?

@NicTanghe
Copy link

That'S a surprise then. I had quite a good experience with it. Can you make a new issue with an exact description

Alright i just read the replay ill have another look later on and try to fix it

@Bios-Marcel
Copy link
Owner

tcell now supports bracketed paste, if that works on windows, it might solve the issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants