Update image preview? #1675
-
I have added bindings for rotating images. For example: [[manager.prepend_keymap]] The image file rotates properly, but the image preview in Yazi remains unchanged and the text "Empty file" appears on top of the preview. Is there a way to manually refresh the preview within the keymap script that I could add, or possible other fixes? New user, really enjoying Yazi! Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
If you want to refresh, you can use "refresh" in run. [[manager.prepend_keymap]]
on = [ ">" ]
run = ['shell "for file in "$@"; do magick "$file" -rotate 90 "${file%}"; done" --confirm', "refresh"]
desc = "Rotate selected images clockwise" Check if this works for you or not |
Beta Was this translation helpful? Give feedback.
-
This is a bug, should be fixed in #1682 now |
Beta Was this translation helpful? Give feedback.
If you want to refresh, you can use "refresh" in run.
Check if this works for you or not