Say user has a window with opened in single-pane mode:

From UX standpoint, if user executes :view<cr>
, it can be expected that window is split perpendicular to the longer side and the preview is shown.
However, currently, vifm
shows an error message:

Is there a script or configuration property to achieve this?
I would imagine roughly the following logic. If preview is called in single-pane mode:
- Check that
vifm
window size is at least >= XX by XX.
- Determine the long side of the window, split in half.
- Show preview and move focus to it.
- Once focus moves back to the file listing - hide preview window.