# pi-editor-selection

> Keyboard and fullscreen mouse selection for the Pi prompt editor

Latest version **0.1.1** (published 2026-09-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install pi-editor-selection
pnpm add pi-editor-selection
yarn add pi-editor-selection
bun add pi-editor-selection
```

## Health

**Score 60/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2026-09-24 |
| First published | 2026-09-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=22.19.0 |
| Dependencies | 0 |
| Unpacked size | 14 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | gybra |
| Keywords | pi-package, pi, terminal, editor, selection |

## Links

- npm: https://www.npmjs.com/package/pi-editor-selection
- Repository: https://github.com/Gybra/pi-editor-selection
- Homepage: https://github.com/Gybra/pi-editor-selection#readme
- Issues: https://github.com/Gybra/pi-editor-selection/issues
- npm.io page: https://npm.io/package/pi-editor-selection

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2026-09-24
- 0.1.0 — 2026-09-23

## README

# pi-editor-selection

Add visible text selection to Pi's prompt editor and delete the selected text with Backspace or Delete.

## Features

- Select text with **Shift+Left/Right/Up/Down** in both regular and fullscreen TUI modes.
- Extend or shrink a selection in either direction; it stays active until another editor action changes or clears it.
- Delete the selected range with the configured Backspace or Delete keybinding. Pi's undo behavior is preserved.
- In fullscreen mode, select prompt text by dragging with the left mouse button. Pi copies the native screen selection on release when **Fullscreen copy on select** is enabled.
- No Ctrl/Cmd+A, Ctrl/Cmd+C, or Ctrl/Cmd+X selection bindings are added.

The extension does not change Pi's TUI mode. Keyboard selection works in either mode; mouse selection is available only in fullscreen mode. Switch modes in Pi's settings, or start Pi with `--tui-mode fullscreen`.

## Install

After this package is published to npm:

```sh
pi install npm:pi-editor-selection
```

To load it from a local checkout:

```sh
pi --extension ./extensions/index.ts
```

Or load the package manifest from the repository root:

```sh
pi -e .
```

## Test and package check

```sh
npm test
npm pack --dry-run --json
```

## Publishing checklist

Publishing is manual. Before publishing:

1. Run the tests and inspect the dry-run tarball.
2. Run `npm login` and confirm `pi-editor-selection` is still available on npm.
3. Publish explicitly with `npm publish`.

This repository does not publish or push automatically.

---
_Source: https://npm.io/package/pi-editor-selection · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
