AndreasArvidsson / andreas-talon

User scripts for Talon Voice
MIT License
73 stars 11 forks source link

some clippy text entries are way too big, making clippy window very wide #8

Closed jmegner closed 1 year ago

jmegner commented 1 year ago

When I copy plain text or rich text from Microsoft Outlook, clippy entries have a very reasonable plain text view of the text. When I copy from Microsoft OneNote, clippy shows the entry like a very zoomed in (pixelated) and wide picture of the text. This very wide entry makes the clippy window also grow very wide (sometimes wider than my 1920x1080 monitor). Not sure what else could cause this behavior, but I've noticed it with OneNote.

image

AndreasArvidsson commented 1 year ago

That looks like an image. For some reason it was copied as an image. I probably just need to limit the maximum width on images.

AndreasArvidsson commented 1 year ago

I have now updated the code to clamp image width

https://github.com/AndreasArvidsson/andreas-talon/commit/f04e73efb56e17939d161348b65c23cd46c44613