Skip to content

Pager ​

ShowPreview (default binds: F11 and ctrl-l) pages the current preview fullscreen using minus.

minus draws on stdout when it is a terminal; when stdout is redirected (e.g. mm | head) the pager draws on the controlling tty (/dev/tty) instead, so piping or redirecting mm's output never mixes pager UI into it.

The pager starts immediately: it does not wait for the preview command to finish, and output streams in as the command produces it. ShowPreview(cmd) pages an arbitrary template instead of the current preview command.

pager. config section ​

KeyTypeDescription
pager.line_numbersboolShow line numbers
pager.followboolStick to the newest output
pager.promptstringFooter prompt text
pager.horizontal_scrollboolEnable horizontal scrolling
pager.smart_caseboolCase-sensitive search unless the query has uppercase
pager.copy_on_selectboolCopy the mouse selection on release

minus keybindings ​

These are the defaults of minus 5.7. A keybinding table for all of minus's actions lives in the minus documentation.

KeyAction
q, Ctrl-cQuit the pager (always resumes the picker)
j / ↓, k / ↑Scroll one line (prefix a number to repeat)
Space, PageDown / PageUpScroll one page
u, Ctrl-u / d, Ctrl-dScroll half a page
g / GGo to the top / bottom (or to line N)
EnterScroll N lines
h / ←, l / →Scroll horizontally
Ctrl-lToggle line numbers
Ctrl-fToggle follow mode
Ctrl + HToggle line wrap
/, ?Search forward / backward
n, pJump to the next / previous match

Without the pager feature ​

Without the feature, ShowPreview pipes the command output through the external pager chain MM_PAGER → $PAGER → less → more.