# pi-copy-all

A Pi extension that copies current thread transcript to clipboard.

## Features

- `/copy-all` slash command
- `ctrl+alt+a` shortcut
- Copies current session branch only
- Includes previous `user` and `assistant` messages
- Skips tool results, custom messages, thinking blocks, and tool calls
- Replaces images with `[image: mime/type]`
- Notifies when copy succeeds, transcript is empty, or clipboard write fails

## Install

From npm:

```bash
pi install npm:pi-copy-all
```

From GitHub:

```bash
pi install git:github.com/RespectMathias/pi-copy-all
```

Local development:

```bash
pi -e ./src/index.ts
```

## Commands

```text
/copy-all
```

Default shortcut:

```text
ctrl+alt+a
```

No built-in keybindings are changed by this extension.

## Development

```bash
npm install
npm run check
npm run pack:dry
```

## Publishing

```bash
npm login
npm publish
```

GitHub setup:

```bash
git init
git add .
git commit -m "Initial release"
git branch -M main
git remote add origin https://github.com/RespectMathias/pi-copy-all.git
git push -u origin main
```

## License

MIT © RespectMathias
