[FEATURE] Separate history:searchBash or history:searchPrompts actions in ctrl + R keybinding

Resolved 💬 2 comments Opened Mar 25, 2026 by aparnaar1996 Closed Apr 24, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Claude Code's history:search is a single unified search across both bash commands and prompts — it doesn't filter by the current mode. When you press ctrl+r again to cycle, it cycles through all history entries regardless of type.

This is a limitation of the current implementation. There's no separate history:searchBash or history:searchPrompts action available in the keybindings system, so there's no way to configure mode-aware filtering through ~/.claude/keybindings.json.

Proposed Solution

Extend the bash mode to history:search. Only cycle through bash commands if in bash mode, prompt if in prompt mode and offer a separate unified search mode.

Alternative Solutions

_No response_

Priority

Low - Nice to have

Feature Category

CLI commands and flags

Use Case Example

_No response_

Additional Context

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗