Feature request: Prefix-filtered history recall with up arrow

Resolved 💬 3 comments Opened Feb 26, 2026 by chrisleewilcox Closed Mar 3, 2026

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-backward bound to up arrow
  • Zsh: history-beginning-search-backward
  • Fish shell: built-in prefix search on up arrow

View original on GitHub ↗

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