{"_id":"@benvargas/pi-cut-stack","_rev":"2-bcd7a270947cd8d7ea5dd48ddc60c0b9","name":"@benvargas/pi-cut-stack","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@benvargas/pi-cut-stack","version":"1.0.0","keywords":["pi","pi-package","pi-extension","pi-coding-agent","keybindings","editor","clipboard","cut","stack"],"author":{"name":"Ben Vargas"},"license":"MIT","_id":"@benvargas/pi-cut-stack@1.0.0","maintainers":[{"name":"benvargas","email":"ben@vargas.com"}],"homepage":"https://github.com/ben-vargas/pi-packages/tree/main/packages/pi-cut-stack#readme","bugs":{"url":"https://github.com/ben-vargas/pi-packages/issues"},"pi":{"extensions":["./extensions/index.ts"]},"dist":{"shasum":"6bdcb324212d38198824f060fac1a4b280d8efcd","tarball":"https://registry.npmjs.org/@benvargas/pi-cut-stack/-/pi-cut-stack-1.0.0.tgz","fileCount":4,"integrity":"sha512-u9P8BJssU+2e16Tl+5h3bMnaIzwIjPzNTf0nTMrE/g1+bCBPNqOp0Y0Efewkkomx4OEpW3Nlr/L4XNVCncKblQ==","signatures":[{"sig":"MEYCIQCEG7kv/BXUd33LI5/3xznCtsBpLVw0FAA4PCLCwzFJZgIhANc7Z/vFwlkIzeNQ+aomEEuL2fypfznveYGXkX2qdTQH","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6501},"type":"module","gitHead":"1431abad683e436dc05e3ea753775709b6f0c00b","_npmUser":{"name":"benvargas","email":"ben@vargas.com"},"repository":{"url":"git+https://github.com/ben-vargas/pi-packages.git","type":"git","directory":"packages/pi-cut-stack"},"_npmVersion":"11.7.0","description":"Cut-stack editor shortcuts for pi","directories":{},"_nodeVersion":"24.11.0","_hasShrinkwrap":false,"peerDependencies":{"@mariozechner/pi-tui":"*","@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-cut-stack_1.0.0_1770265106803_0.6275414825801333","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@benvargas/pi-cut-stack","version":"1.0.1","description":"Cut-stack editor shortcuts for pi","keywords":["pi","pi-package","pi-extension","pi-coding-agent","keybindings","editor","clipboard","cut","stack"],"type":"module","pi":{"extensions":["./extensions/index.ts"]},"peerDependencies":{"@earendil-works/pi-coding-agent":">=0.74.0","@earendil-works/pi-tui":">=0.74.0"},"repository":{"type":"git","url":"git+https://github.com/ben-vargas/pi-packages.git","directory":"packages/pi-cut-stack"},"author":{"name":"Ben Vargas"},"license":"MIT","bugs":{"url":"https://github.com/ben-vargas/pi-packages/issues"},"homepage":"https://github.com/ben-vargas/pi-packages/tree/main/packages/pi-cut-stack#readme","gitHead":"d9370e9ba085ca27e91b113b6df06559f9aa7ba5","_id":"@benvargas/pi-cut-stack@1.0.1","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-nh3I0+5xM0jCF1WXB4ss5Yia0yiec66JcKRi5f4b1UT6M7tyIigIRxRW8xzkJ09nU8vLI6Adcta1rojtOqqgMA==","shasum":"a143452be31d6d797552b899cb1a055cadd4eab3","tarball":"https://registry.npmjs.org/@benvargas/pi-cut-stack/-/pi-cut-stack-1.0.1.tgz","fileCount":4,"unpackedSize":6523,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDW1Slwk01CnJblz/rqYcdUk+jWdy06kHUv9lV4Zgd8NwIga/mibThacSNk4EUnbAJvhZRjfGiieCmRlV4T90p4JNI="}]},"_npmUser":{"name":"benvargas","email":"ben@vargas.com"},"directories":{},"maintainers":[{"name":"benvargas","email":"ben@vargas.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-cut-stack_1.0.1_1779738044430_0.1730151259816588"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-05T04:18:26.754Z","modified":"2026-05-25T19:40:44.765Z","1.0.0":"2026-02-05T04:18:26.963Z","1.0.1":"2026-05-25T19:40:44.559Z"},"bugs":{"url":"https://github.com/ben-vargas/pi-packages/issues"},"author":{"name":"Ben Vargas"},"license":"MIT","homepage":"https://github.com/ben-vargas/pi-packages/tree/main/packages/pi-cut-stack#readme","keywords":["pi","pi-package","pi-extension","pi-coding-agent","keybindings","editor","clipboard","cut","stack"],"repository":{"type":"git","url":"git+https://github.com/ben-vargas/pi-packages.git","directory":"packages/pi-cut-stack"},"description":"Cut-stack editor shortcuts for pi","maintainers":[{"name":"benvargas","email":"ben@vargas.com"}],"readme":"# @benvargas/pi-cut-stack\n\nCut-stack editor shortcuts for pi.\n\n- `cut` takes the entire current editor content, pushes it onto a stack, and clears the editor.\n- `pop` pops the latest entry from the stack and appends it to the current editor content.\n- The stack is in-memory only (cleared on restart).\n\n## Install\n\n```bash\npi install npm:@benvargas/pi-cut-stack\n```\n\nOr try without installing:\n\n```bash\npi -e npm:@benvargas/pi-cut-stack\n```\n\n## Default Keybindings\n\n- Cut: `alt+x`\n- Pop: `alt+p`\n\n## Configuration\n\n`keybindings.json` is optional. Only add it if you want to override the defaults.\n\nAdd entries to `~/.pi/agent/keybindings.json`:\n\n```json\n{\n  \"ext.pi-cut-stack.cut\": \"alt+x\",\n  \"ext.pi-cut-stack.pop\": \"alt+p\"\n}\n```\n\nEach key can be a single string or an array of strings. If the file is missing or invalid, defaults are used.\n\n## Notes\n\n- Pop with an empty stack displays a `Cut stack is empty` status notification.\n- If the editor is empty, cut is a no-op.\n\n## Ghostty (macOS) Tip\n\nmacOS terminal apps do not receive `cmd` shortcuts directly. If you want `cmd+x` / `cmd+p` to behave like `alt+x` / `alt+p`, map them in Ghostty:\n\n```ini\nkeybind = cmd+x=esc:x\nkeybind = cmd+p=esc:p\n```\n\nThis sends `esc+x` / `esc+p`. Because pi uses Kitty keyboard protocol outside of tmux, these mappings only behave like `alt+x` / `alt+p` inside tmux. Outside tmux, use the actual Option/Alt keys (ensure Ghostty is configured to treat Option as Alt/Meta).\n\n## Uninstall\n\n```bash\npi remove npm:@benvargas/pi-cut-stack\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}