enricoros/big-AGI

Pasting from Excel pastes Image

enricoros opened this issue · 6 comments

When pasting from Excel, the Image part takes precedence over the Html (which would be turned into a nice markdown table) or Text

I am interested in working on this issue.
May I understand what exactly is being copied from excel?

Are you able to assign this one to yourself?

What happens is that when copying from apps, the clipboard has many formats inside. There's text/html, text/plain,... and image/png or something.

Need to make sure the right format is used, and not a picture.

I am interested in working on this issue. May I understand what exactly is being copied from excel?

Thanks @Just-A-Pixel for working on this issue. It was raised by me to @enricoros ...
Do you understand what the problems is.. . I can explain it if you want to :)

Fixed on main, NOTES BELOW

Application relation change:

  • Excel (tested on windows): pastes table instead of images
  • Word: pastes text (ctrl+v) or attaches text+html (shift+ctrl+v, paste button)
  • Powerpoint: ctrl+v pastes text as text, and non-text as image

Paste behavior change

Action Former behavior Now
CTRL+V paste image Paste table as text
Shift+Ctrl+V paste image Attach Table as Markdown
"Paste" Button paste image Attach Table as Markdown

I appreciate the prompt resolution. The level of developer engagement and the pace of development observed in this GitHub repository are unparalleled in my experience. Thank you.
Shall i Close the issue ✅.

Yep, issue closed (I put "Fixes #286" in the git commit title, which tells GitHub to auto-close. Magic :)