Skip to content
Discussion options

You must be logged in to vote

This is expected with the current preview-tui + viu path.

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:

$NNN_PREVIEWIMGPROG "$file"

So if NNN_PREVIEWIMGPROG is viu or viu -n, then viu decides the display size itself. viu supports -w/--width and -h/--height; if you pass only one of them it preserves aspect ratio.

A simple workaround is to give viu an explicit size, for example:

export NNN_PREVIEWIMGPROG='viu -w 80'

or increase the preview split first:

export NNN_SPLITSIZE=60

NNN_PREVIEWWIDTH / NNN_PREVIEWHEIGHT

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ahloiscreamo
Comment options

@jarun
Comment options

Answer selected by ahloiscreamo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants