pi-readline-search

Pi extension for GNU Readline-style reverse search on Ctrl+R

Package details

extension

Install pi-readline-search from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-readline-search
Package
pi-readline-search
Version
0.1.0
Published
Feb 21, 2026
Downloads
29/mo · 7/wk
Author
mrshu
License
MIT
Types
extension
Size
8.1 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-readline-search

GNU Readline-style reverse history search for pi.

Press Ctrl+R in the editor to search previous prompts and user bash commands (! / !!).

Features

  • Ctrl+R opens reverse search
  • Type to filter history
  • Ctrl+R or for older matches
  • Ctrl+S or for newer matches
  • Enter to insert selected match into the editor
  • Esc or Ctrl+G to cancel

Install

From local path

pi install ./

From git

pi install git:github.com/mrshu/pi-readline-search

Dev / quick test

pi -e ./extensions/readline-search.ts

Package manifest

This repo is a pi package via package.json:

  • pi.extensions: ["./extensions"]
  • extension entry: extensions/readline-search.ts