gregzuro / obsidian-kroki

MIT License
47 stars 27 forks source link

Feature Request: copy image link for multiple formats #19

Open SeidChr opened 1 year ago

SeidChr commented 1 year ago

I love your plugin, but I miss one thing. I am using the diagrams mostly internally, but often have the usecase, that i want to share just the link to one with someone via chat. Currently I have to open the mermaid live editor or some Niolesk page, copy the text over and then have a link.

It would be perfect, if I could just right-click the image and say Copy Link, buts thats not available in obsidian. Could you add some button, which is shown on hover, and shows a menu to copy the image lik in multipla formats? Like

[X]
 |> Copy link for PNG
 |> Copy link for SVG
 |> Copy link to Niolesk
 |> Copy link to ???

and place it right next to the edit link? image

SeidChr commented 1 year ago

i have an ugly hack. i have no idea yet on how to add another button image

this way i can click to open in browser, then rightclick to copy and just paste into word

SeidChr commented 1 year ago

@gregzuro checking the other issues, made me wondering whether you are still working on the project your github submission graph looks a bit empty 😅

gregzuro commented 1 year ago

@gregzuro checking the other issues, made me wondering whether you are still working on the project your github submission graph looks a bit empty 😅

I am here. I will take a look.

If you want to take a crack at it, I will gladly merge your PR. :) LMK.

SeidChr commented 1 year ago

@gregzuro checking the other issues, made me wondering whether you are still working on the project your github submission graph looks a bit empty 😅

I am here. I will take a look.

If you want to take a crack at it, I will gladly merge your PR. :) LMK.

said and done. check pr. i'd be glad if you could straighten it up