Viu image preview size #2145
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
This is expected with the current In $NNN_PREVIEWIMGPROG "$file"So if A simple workaround is to give export NNN_PREVIEWIMGPROG='viu -w 80'or increase the preview split first: export NNN_SPLITSIZE=60
If you want it to always use the current preview pane size, use a tiny wrapper script instead of calling |
Beta Was this translation helpful? Give feedback.

This is expected with the current
preview-tui+viupath.In
plugins/preview-tui, the pane size is passed explicitly only for some backends. For example kitty uses--place "$cols"x"$lines", and ueberzug gets width/height from the preview pane. But for a custom image command it just runs:So if
NNN_PREVIEWIMGPROGisviuorviu -n, thenviudecides the display size itself.viusupports-w/--widthand-h/--height; if you pass only one of them it preserves aspect ratio.A simple workaround is to give
viuan explicit size, for example:or increase the preview split first:
export NNN_SPLITSIZE=60NNN_PREVIEWWIDTH/NNN_PREVIEWHEIGHT