Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

pi-stash

Pi package that adds a prompt stash shortcut for the interactive editor.

Behavior

Press the stash keybinding to push the current prompt aside and clear the editor. Press it again with an empty editor to restore the stashed prompt. If the editor has text while a prompt is already stashed, pressing the stash keybinding replaces the old stash with the current editor text.

You can also send another message while a prompt is stashed; pi-stash will restore the stashed prompt back into the editor immediately after that message is submitted.

This is useful when you have a longer prompt drafted but want to quickly ask or send something else first.

Keybinding

The default keybinding is ctrl+q. I will consider adding the ability to configure it later, but for now it's hardcoded.

Install

pi install npm:@foxfirecodes/pi-stash

Development

From this checkout:

pi install .

Or try it for one run:

pi -e /path/to/pi-extensions/packages/pi-stash

To run automated tests:

pnpm test