Skip to content

Conversation

@vezaynk
Copy link
Collaborator

@vezaynk vezaynk commented Dec 23, 2021

Accessing clipboard from WSL is done the exact same way as in windows, the only thing to be careful with are that the paths must be converted to window's format.

Tests:

I'm not sure how to setup automated cross-platform tests (especially for WSL). I tested it for WSL, I'll need help testing it for other platforms.

WSL:

  • Paste HTML
  • Paste Image
  • Paste Text
  • Download image

Windows 10:

  • Paste HTML
  • Paste Image
  • Paste Text
  • Download image

Windows 32:

  • Paste HTML
  • Paste Image
  • Paste Text
  • Download image

Darwin (Seems to be missing scripts across the board, no way for it to work):

  • Paste HTML
  • Paste Image
  • Paste Text
  • Download image

@vezaynk vezaynk marked this pull request as ready for review December 24, 2021 05:01
@vezaynk
Copy link
Collaborator Author

vezaynk commented Dec 24, 2021

@telesoho Ready for review. I need some help testing it, but I'm fairly confident that everything should just work.

@telesoho telesoho merged commit b8d0327 into telesoho:master Dec 24, 2021
@telesoho
Copy link
Owner

@knyzorg
Great job! Thank you.
I'm also not sure how to setup cross-platform tests too. Anyway, I published it so that other people can help.

let newContent = Paster.parse(content);
Paster.writeToEditor(newContent);
} else {
Paster.pasteImage();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regression: This codepath was necessary for MacOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants