nicojeske / mousewheel-image-zoom

An Obsidian plugin that enables you to increase/decrease the size of an image by holding down a configurable key (defaults to left alt), hovering over an image in preview mode and scrolling.
MIT License
90 stars 5 forks source link

[Feature Request] Allow to use caption text when using this addon #11

Closed midvok closed 2 years ago

midvok commented 2 years ago

First, thank you for this very useful addon for resizing images.

I have one idea for improvement when you also use also the addon for displaying captions (https://github.com/bicarlsen/obsidian_image_caption).

Currently, I can specify both caption and size as follows (which perfectly works in Obsidian):

![[image.jpg|"Caption"|400]]

But when I start using the Image Zoom addon, it inserts a new value before the caption (which seems to be ignored by Obsidian and only the last value is used).

![[image.jpg|200|"Caption"|400]]

So, my proposal is to detect and change the image size value as the last element instead of inserting a new value. Does it make sense?

nicojeske commented 2 years ago

Support should be added in the newest update :)

midvok commented 2 years ago

Thank you very much for the update, I just tested it and it works perfectly :)