@ogulcancelik/pi-quit-and-delete
v0.1.0
Published
Keyboard shortcut to quit pi and permanently delete the active session file.
Maintainers
Readme
pi-quit-and-delete
A pi extension that adds a keyboard shortcut to quit pi and permanently delete the active session file.
Install
pi install npm:@ogulcancelik/pi-quit-and-deleteOr add manually to ~/.pi/agent/settings.json:
{
"packages": ["npm:@ogulcancelik/pi-quit-and-delete"]
}Usage
Press Ctrl+Shift+X to immediately:
- Delete the current session
.jsonlfile from disk - Hard-exit pi immediately
If the session is ephemeral (in-memory, no file), pi quits without deleting anything.
Customizing the Shortcut
Environment Variable
Set PI_QUIT_AND_DELETE_SHORTCUT before running pi:
export PI_QUIT_AND_DELETE_SHORTCUT="ctrl+shift+x"
piSettings JSON
Add to ~/.pi/agent/settings.json:
{
"@ogulcancelik/pi-quit-and-delete": {
"shortcut": "ctrl+shift+x"
}
}Precedence: environment variable > settings.json > default (ctrl+shift+x).
License
MIT
