# pi-smart-copy

`pi-smart-copy` adds `/smart-copy` to [pi](https://pi.dev). it copies the latest assistant response, or lets you choose one markdown section when the response contains headings.

## install

```bash
pi install git:github.com/injaneity/pi-smart-copy
```

restart pi after installation.

## use

run:

```text
/smart-copy
```

if the latest response has markdown headings, choose the entire response or a section. sections include their heading and nested subsections. if there are no headings, the complete response is copied immediately.

## development

```bash
npm install
npm run check
npm test
pi -e ./extensions/index.ts
```

## license

mit
