MOOR(1) General Commands Manual MOOR(1)

moor - the nice pager

moor [options] file...
moor --help
moor --version

moor is a pager much like less (1), but with generally nicer out-of-the-box behavior.

More information and screenshots: https://github.com/walles/moor#readme

Inside of moor, press h to access the built-in help.

Input is expected to be (optionally compressed) UTF-8 text. Invalid / unprintable characters are by default rendered as '?'.

If you have opened multiple files, press : to switch between them.

Multiple-choice options all have the default value listed first.

All of these options can be appended to the MOOR environment variable for persistent configuration.

Doing moor --help will also list these options.

Size of color palette we output to the terminal
Print debug logs after exiting, less verbose than --trace
Scrolls automatically to follow piped input, just like tail -f
Used for highlighting. Without this flag highlighting is based on the input file name. Valid values are MIME types like text/x-markdown, file extensions like md or language names like markdown. For the source of truth on what is supported exactly, look in https://github.com/alecthomas/chroma/tree/master/lexers/embedded or its parent directory.
Guarantee selecting text with the mouse works but maybe not mouse scrolling. Or guarantee mouse scrolling works but selecting text requiring extra effort. Details here: https://github.com/walles/moor/blob/master/MOUSE.md
Retain screen contents when exiting moor. Affected by --no-clear-on-exit-margin.
Leave this number of lines for your shell prompt after exiting. Defaults to 1. Affects --no-clear-on-exit and --quit-if-one-screen.
Hide line numbers on startup, press left arrow key to show
No effect, exists for backwards compatibility. See --reformat.
Do not highlight the background of lines with search hits. The search hits themselves are still highlighted though, even with this option.
Hide the status bar, toggle with =
Print input contents without paging if the input fits on one screen. Affected by --no-clear-on-exit-margin.
Reformat supported input files (JSON) before showing them.
How unprintable characters are rendered
UTF-8 character indicating the view can scroll left, defaults to an inverse <. This can be a string containing ANSI formatting. The word ESC in caps will be interpreted as one escape character. Example value for faint (using ANSI SGR code 2) tilde characters: ESC[2m~
UTF-8 character indicating the view can scroll right, defaults to an inverse >. This can be a string containing ANSI formatting. The word ESC in caps will be interpreted as one escape character. Example value for faint (using ANSI SGR code 2) tilde characters: ESC[2m~
Arrow keys side scroll amount. Or try ALT+arrow to scroll one column at a time.
Status bar style
Highlighting style from https://xyproto.github.io/splash/docs/longer/all.html
Number of spaces per tab stop, defaults to 8. Or try CTRL-t to toggle when moor is running.
Use terminal foreground color rather than style foreground color for unstyled text. Try this if your terminal window has a background image rather than a solid color.
Print trace logs after exiting, more verbose than --debug
Wrap long lines, toggle with w
+1234
Immediately scroll to line 1234

$XDG_DATA_HOME/moor/search_history
Moor will store your search history in this file. If $XDG_DATA_HOME is not set, the file will be stored in the default XDG location, usually ~/.local/share/moor/search_history.

Setting this to "1" prevents moor from opening new files or launching external programs, as required by systemctl(1). In secure mode, the "v" command for opening the current file in an editor is disabled, and the search history file is not updated.
Additional options are read from this variable if it is set, just as if those same options had been manually added to each moor invocation. Try setting it to --reformat to have JSON input automatically reformatted!
If set to "moor", many programs will use moor as their pager.
Other programs can set this to tell moor what name to show for stdin input.

Kindly report any bugs here: https://github.com/walles/moor/issues

2022-07-21