warpdotdev / warpdotdev/warp

Allow searching nearby history when using Ctrl+R / Reverse Search

Open
#3,984 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:search enhancement triaged
Dominant language
Rust
Stars
65.1k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

Discord username (optional)

No response

Describe the solution you'd like?
Basically, I would like to be able to find a command using Ctrl+R, then find nearby commands that were entered before or after it.

Maybe it's already possible, in which case please tell me how - I'm relatively new so I haven't figured out how to translate all my normal workflows yet.

Desired behavior:
- Ctrl+R to trigger reverse search
- Search for a command, navigate with arrow keys, hit Enter to select it
- Press up and down arrow keys to navigate the commands that were entered before and after it

Currently this is possible on a regular terminal by using Ctrl+R, typing in a string, and pressing the arrow keys directly.
Is your feature request related to a problem? Please describe.
I often use Ctrl+R when I want to remember was I was doing a few hours before, or yesterday, and that involves looking at a series of commands entered together. But I'll usually only remember a couple keywords that I use as my "anchor" point to get me to the approximate time period I want, and then I use the arrow keys to scrub through my command history.
Additional context

No response

How important is this feature to you?

4

Warp Internal (ignore) - linear-label:770f6576-d6c0-4e4f-a259-fc64b5156087

None

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start at Warp's Ctrl+R/reverse-search entry point and trace how selecting a history item handles arrow keys. Done means reverse search can select a command and then use the up and down arrows to navigate nearby history entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.