pi-readline-search
v0.1.0
Published
Pi extension for GNU Readline-style reverse search on Ctrl+R
Downloads
102
Maintainers
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-searchDev / quick test
pi -e ./extensions/readline-search.tsPackage manifest
This repo is a pi package via package.json:
pi.extensions: ["./extensions"]- extension entry:
extensions/readline-search.ts
