pi-command-actions0.1.1
Copy or run shell blocks from Pi responses
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
Pi Command Actions
A Pi extension for acting on shell commands from the latest assistant response.
Press Ctrl+Shift+R (or run /command-actions) after a response containing a fenced bash, sh, shell, zsh, or fish block. When more than one shell block is present, choose one first.
The dialog lets you:
- Copy the command to the system clipboard.
- Run by pre-filling Pi's editor with
!<command>. Review it and press Enter to execute it through Pi's normal user-bash flow.
Install
After publishing to npm:
pi install npm:pi-command-actions
For local development:
pi -e /path/to/pi-command-actions/extensions/command-actions.ts
Publish
Choose and add a license, then authenticate and publish:
npm login
npm publish
If pi-command-actions is already taken on npm, rename the package in package.json, preferably to a public scoped name such as @your-npm-user/pi-command-actions. Publish a scoped package with:
npm publish --access public
Packages carrying the pi-package keyword are displayed by the Pi package gallery at https://pi.dev/packages.