Feature request: Prefix-filtered history recall with up arrow
Feature Request
Description
Add prefix-filtered history recall when pressing the up arrow key, similar to how bash/zsh shells work.
Current Behavior
Pressing the up arrow cycles through all previous inputs in order.
Desired Behavior
When text has been partially typed into the input, pressing the up arrow should filter history to only show previous inputs that start with the typed prefix.
For example, if I type state and then press up arrow, it should cycle through only previous inputs that started with state, rather than cycling through all history.
Motivation
This is a standard UX pattern in shell tools (bash, zsh, fish) and significantly speeds up recalling and reusing previous commands. Power users of Claude Code who frequently reuse similar prompts would benefit from being able to quickly filter down to relevant history entries.
References
- Bash/readline:
history-search-backwardbound to up arrow - Zsh:
history-beginning-search-backward - Fish shell: built-in prefix search on up arrow
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗