0.5.0 • Published 9 years ago

much v0.5.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

npm

much

Dependency Status

much — pager with depth support.

Fold JavaScript functions, objects and blocks interactively in the pager.

Example

$ much browserify.js

screenshot

CLI

$ much [<file>]

Consumes stdin by default.

Controls

Basic

keydescription
q, Ctrl+cQuit.
Ctrl+zSuspend.

Scrolling

keydescription
down, jScroll down.
up, kScroll up.
dScroll half the screen down.
uScroll half the screen up.
gScroll to top.
GScroll to bottom.

Code Folding

keydescription
left, hFold code.
right, lUnfold code.
Shift+left, HFold all.
Shift+right, LUnfold all.

Search

keydescription
/Search forward.
nScroll to next occurrence.
NScroll to previous occurrence.
ESC-uClear search highlighting.

$LESSOPEN

much supports $LESSOPEN variable in the same manner as less(1). This allows for preprocessing step before pager displays file contents. See less(1) manual for details.

For example, include the following line in the shell config to highlight files with source-highlight(1):

LESSOPEN="| src-hilite-lesspipe.sh %s"

Install

npm install -g much

License

MIT