much
— pager with depth support.
Fold JavaScript functions, objects and blocks interactively in the pager.
$ much browserify.js
Consumes stdin
by default.
key | description |
---|---|
q, Ctrl+c | Quit. |
Ctrl+z | Suspend. |
key | description |
---|---|
down, j | Scroll down. |
up, k | Scroll up. |
d | Scroll half the screen down. |
u | Scroll half the screen up. |
g | Scroll to top. |
G | Scroll to bottom. |
key | description |
---|---|
left, h | Fold code. |
right, l | Unfold code. |
Shift+left, H | Fold all. |
Shift+right, L | Unfold all. |
key | description |
---|---|
/ | Search forward. |
n | Scroll to next occurrence. |
N | Scroll to previous occurrence. |
ESC-u | Clear search highlighting. |
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"
npm install -g much
MIT