asermax-pi-save

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

pi-save

Stash and restore your Pi prompt via alt+s.

Temporarily save what you're typing so you can send a different message first. The stash is restored automatically after you send, or manually via the shortcut again.

Install

pi install npm:@asermax/pi-save

Or from git:

pi install git:git@github.com:asermax/pi-save.git

Usage

Action Result
alt+s (with text in editor) Stashes the current prompt, clears the editor, shows indicator
alt+s (with stash active) Restores the stashed text into the editor
Send a message (with stash active) Auto-restores the stash into the editor immediately

The stash survives across sessions — if you start a new session while a prompt is stashed, it'll be restored into the editor on startup.

Development

This package uses semantic-release. To trigger a release, push conventional commits to main:

  • feat: → minor bump
  • fix: → patch bump
  • feat!: or BREAKING CHANGE: in footer → major bump

No manual versioning or tagging needed — the CI handles it all.