twinny icon indicating copy to clipboard operation
twinny copied to clipboard

Copy paste doesn't always work

Open AntonKrug opened this issue 1 year ago • 7 comments

Describe the bug

When i want to copy something from the message, not just the highlighted code block, i allows me to select it, to click COPY, but when I paste it into the editor previous copy shows, or empty lines.

To Reproduce Steps to reproduce the behavior:

  1. Go to to the prompt and say Say hello
  2. Click on 'Send message'
  3. Select the response: "Hello!"
  4. Right click to show context menu
  5. Left click Copy
  6. The paste it into your editor

Expected behavior Would like to see the "Hello!" pasted in my editor

Screenshots image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Firefox
  • Version 122

AntonKrug avatar Jan 31 '24 22:01 AntonKrug

Hello @AntonKrug thank you for the report. Unfortunately, after many attempts in different ways I am struggling to reproduce the issue, my copy and paste works every time. This menu is the generic right-click menu which is built into the editor and not something the extension controls. Do you have this problem elsewhere in Visual Studio Code?

Would adding a copy button to each message help alleviate the issue for you?

Many thanks,

rjmacarthy avatar Feb 01 '24 08:02 rjmacarthy

If I instruct the model to respond in a code block explicitly then the plugin adds a copy button and that works.

AntonKrug avatar Feb 07 '24 02:02 AntonKrug

Copy paste in code works, but i do not know about any tab/extension where i could select and right click and get copy/paste options anyway, Source control tab and others do not have it, there is copy in Extensions tab and that works exactly as expected, is there a specific plugin/tab you would like me to test it on?

AntonKrug avatar Feb 07 '24 17:02 AntonKrug

image

AntonKrug avatar Feb 07 '24 17:02 AntonKrug

Ok, I'm having this same exact problem. Right clicking copy/cut/paste on the twinny side window doesn't work (not stating that it's twinny), but if I copy something in the editor on the right, and control-v into the "Message twinny" box, it will paste into there, but if I right click and paste it in there, nothing is pasted. It seems like that twinny side window isn't capturing the commands. Now if I move to a different side bar/window, like the extensions or search or even the file/folders tab, copy and paste work fine. It's just the twinny tab.

edit: Another weird thing is that most of the time when I right click paste in the twinny message box, nothing happens, but if i copy and paste, after a while, if i go back to right click paste in the twinny message box, it will paste in the terminal. But that doesn't happen all the time... so it's like it's confused at which section of vscode has the focus.

Oh, thank you for this extension by the way, loving it... was looking for a simple, not so in your face extension for code, and this one is perfect!

AssassinsLament avatar Mar 29 '24 00:03 AssassinsLament

GIF 3-28-2024 8-11-38 PM

AssassinsLament avatar Mar 29 '24 01:03 AssassinsLament

Hmm, strange issue, maybe a react rendering issue. Will need to investigate further soon. Thanks for the kind words! ☺️

rjmacarthy avatar Mar 29 '24 21:03 rjmacarthy