Skip to content

Comment on Things you didn't know about GNU readline (2019)

Comments

Ctrl-k kills the rest of the line. Ctrl-u kills the entire line.

Ctrl-y yanks stuff back in from your kill ring. Esc-y will then replace the stuff with the previous item in the kill ring.

Ctrl-arrows moves a word at a time.

Ctrl-r starts a reverse interactive search through the history. Use any editing key, like ctrl-e to start working on the current search result.

Ctrl-c aborts input and leaves the previous partially edited line visible.

Ctrl-g cancels Ctrl-r searches. So if you want to search and then search again you can clear the history position with Ctrl-g.

Ctrl-s moves forward if you went too far with Ctrl-r.

Ctrl-r twice in a row retrieves the previous search.

Alt-u upper cases. Alt-l lower cases. Alt-c capitalizes. From current position to end of word.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.