Scrollback and searchSearch, and edit scrollback in your editor
No narration yet
Module 5 · Lesson 211 min

Search, and edit scrollback in your editor

Search lives inside Scroll mode. From Scroll mode, s starts a search; you type your needle, press Enter, and then jump between matches. You can toggle case sensitivity, wrapping, and whole-word matching while you search.

Searching (from Scroll mode)
CtrlthensEnter Scroll mode
sStart a search (type the needle, then Enter)
nNext match (down)
pPrevious match (up)
cToggle case sensitivity
wToggle wrap-around
oToggle whole-word matching

Now the feature that pays for the whole tool. From Scroll mode, e dumps the entire scrollback buffer into your $EDITOR as a file. Suddenly all that terminal history is a real buffer: search it with your editor's search, copy blocks, save it, pipe it. No more fighting terminal selection to grab a stack trace.

Edit scrollback
CtrlthensEnter Scroll mode
eOpen the pane's scrollback in $EDITOR
Practice

Try it yourself

Do

Search your history

Find a needle in the scrollback.

Tick every step to confirm you did it.

Do

Dump scrollback to your editor

Send a pane's history straight into your editor.

Tick every step to confirm you did it.

Recall

Recall the killer keys

This one's worth having cold.

Which keys open the current pane's scrollback in your editor?