ASAysha Shafiq
DEVELOPER TOOLING · TERMINAL UI

Gemini CLI History Search

I rebuilt Ctrl+R reverse search in Google's Gemini CLI as a reusable hook, so shell history and prompt history share one incremental search.Rebuilt Ctrl+R in Google’s Gemini CLI with shared incremental search for shell and prompt history.

Changes merged into Google’s Gemini CLI
Search and reuse earlier prompts
Handles multiline command history

Search that feels immediate

Incremental reverse search over shell and prompt history, debounced and cached so each keystroke redraws cheaply.

A reusable state model

The original hook handled one history source; I refactored it into a provider serving both.

Multiline terminal rendering

Context-aware windowing and expand/collapse around matched text, so the matching part is actually visible.

WhatsApp Menstrual Health AITextishLinux Scheduler Performance: EEVDF vs. CFS