-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save image
dialog box opens if text is pasted in ReText
#385
Comments
We are not doing any magic here, and relying on a standard Qt method, QMimeData::hasImage(). So it may indicate a bug somewhere in Qt. Can you try to actually save the image, and check its contents after saving? Maybe this will give us some clue. |
Actually So ReText is more or less right here. The question is what should we do when the clipboard contains both image and text data? Maybe we should ignore the image and just paste text? |
Than python crashes 😄
What is strange is that regardless on which drive (c: or e:) I am trying to save the image I get Otherwise (when on drive c:; open documents + saved image) My proposal would be to paste it as text by default but to add another option in the context menu like "Paste as image" if an image is available in the clipboard (otherwise greyed out). I did not take a deep look into the drive issue but I expect this is probably a bug which should be fixed. Have not tried it under Linux yet. Maybe we get a different behaviour here. |
Works now smoothly. Tested markdown text:
|
When I paste text into ReText sometimes it opens the
save image
dialog box instead of pasting the text. To resolve this I have to paste it first in another plain text editor (like Notepad++, gedit, ...) to paste it in ReText. This happens for me since several major ReText versions.I still can't give you a totally reproducable scenario for this.
Data when I copy text from ReText:
Data when I copy (formatted) text from MS OneNote (this does only sometime occur using OneNote but also with different applications):
Text pasted in Notepad++ and then copied again:
==============
ReText: 7.1.0 (Git)
PyMarkups: 3.0.0
Qt: 5.10.1
Python: 3.7.0b5
The text was updated successfully, but these errors were encountered: