@foxfirecodes/pi-stash
v0.2.0
Published
Pi extension that adds a shortcut to stash and restore the current prompt.
Maintainers
Readme
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-stashDevelopment
From this checkout:
pi install .Or try it for one run:
pi -e /path/to/pi-extensions/packages/pi-stashTo run automated tests:
pnpm test