3rd / image.nvim

🖼️ Bringing images to Neovim.
MIT License
803 stars 35 forks source link

feat: curl always redirect #173

Closed r17x closed 1 month ago

r17x commented 1 month ago

I'm using image.nvim with norg, the current plugin isn't support when url is expected will be redirecedt.

Example:

Changes

Preview

image
3rd commented 1 month ago

Hi @r17x, thanks for the PR! Since we're downloading images, should we always follow redirects? I'm thinking it would do what's expected, what do you think?

r17x commented 1 month ago

@3rd

If without the curl_follow_redirect option then only a small commit change is needed in this PR.

I'm okay with the “always redirect” decisition.

3rd commented 1 month ago

Sounds great, do you want to update the PR to just add the -L to track your contribution?

r17x commented 1 month ago

Of course, I have been updated and make "curl always redirect".

@3rd

3rd commented 1 month ago

Thank you so much!