Ctrl+R Brings Back Old Commands in Claude Code
I retype similar prompts almost every single day, and Ctrl+R search put an end to that.
01. I tried Ctrl+R for the first time yesterday
Yesterday I pressed Ctrl+R inside Claude Code for the first time. A search box pops up at the bottom of the screen, and typing just one or two letters of a keyword narrows down your old prompts!! Pick one, hit Enter, and it runs again exactly as before.
$ claude
> (press Ctrl+r)
search: refactor
> refactor this whole function
> keep refactoring this function until the tests pass
> refactor this module while cleaning up its structure
> [select with arrows + Enter] → runs as-is
On my terminal it only surfaced one result, so I got a guide like the one below.
One note: if it doesn't trigger, switch your keyboard back to English input mode and try again.
As someone who reaches for this shortcut now and then, it does save me a real chunk of time.
02. I stopped retyping the same command
That said, I use Ctrl+R less than you'd think. So honestly it didn't feel as useful to me as I expected. I already handle similar commands in natural language through Claude Code's commands and Skills, so it never bothered me much in the first place.
03. Sometimes the search gets a bit confusing
From a few days of using it: when the keyword is too short, too many similar commands containing the same word show up, and I had a hard time picking the right one. In those cases I'd stretch the query to two or three words to narrow it down. But that's a little extra effort too, so the bottom line is—I don't reach for it much.
Source
This is a first-person review after using it for a few days. I received no sponsorship of any kind from Anthropic.
Original with full infographics and visual structure: https://jessinvestment.com/how-ctrlr-brings-back-your-old-prompts-in-claude-code/


Top comments (0)