pi-draft-history
v0.1.2
Published
Keep unsent Pi editor drafts in prompt history when clearing the editor.
Maintainers
Readme
pi-draft-history
A small Pi coding agent extension that keeps an unsent editor draft in prompt history when the editor is cleared.
Type a draft, invoke Pi's app.clear action (Ctrl-C by default), then press Up
to restore it. Clearing an entry selected by navigating prompt history moves
that entry to the newest position instead of duplicating it.
Install
pi install npm:pi-draft-historyRestart Pi or run /reload after installation.
Keybindings
The extension follows the configured app.clear binding. Pi's defaults are:
{
"app.clear": ["ctrl+c"],
"app.exit": ["ctrl+d"]
}Avoid binding the same key to app.exit: Pi checks exit before clear when the
editor is empty.
LICENSE
MIT
