pandora-kit 0.7.4

Interactive TUI toolkit for the Hefesto framework
Documentation
# pan choose — Interactive Item Selector

Opens an interactive popup to select one or more items from a list. Selected items are printed to stdout.

## Usage

```
pan choose [OPTIONS] <ITEMS>...
```

## Options

| Flag                     | Default              | Description                        |
|--------------------------|----------------------|------------------------------------|
| `-t`, `--title`          | `"Seleccionar"`      | Title in the popup header          |
| `-m`, `--multi`          | (off)                | Enable multi-select with Space     |
| `-W`, `--width`          | `0` (auto)           | Popup width                        |
| `-H`, `--height`         | `0` (auto)           | Popup height                       |
| `-M`, `--max`            | (unlimited)          | Max selected items (with --multi)  |
| `--selected`             |                      | File with pre-selected items (one per line) |
| `--badge`                |                      | Ruta a archivo JSON con badges     |
| `--badge-anchor`         | `tl`                 | Anchor default: tl, t, tr, bl, b, br, l, r |
| `--badge-width`          | `0` (auto)           | Default badge width                |
| `--badge-lines`          | `1`                  | Default badge content lines        |
| `--guide`                |                      | Show this guide                    |

## Arguments

| Argument    | Description                        |
|-------------|------------------------------------|
| `ITEMS`     | Items to display (one or more)     |

## Exit codes

| Code | Meaning                          |
|------|----------------------------------|
| 0    | Selection made (items on stdout) |
| 1    | User cancelled (no output)       |

## Examples

```bash
# Simple single selection
pan choose foo bar baz

# Multi-select
pan choose -m apple orange banana grape

# Custom title
pan choose -t "Choose a file" file1.txt file2.txt file3.txt

# Multi-select with pre-selected items
echo -e "orange\npear" > /tmp/selected.txt
pan choose -m --selected /tmp/selected.txt apple orange banana pear
```

## Mouse

- **Click item**: select (single) or toggle (multi)
- **Drag**: click and hold on the border or title bar to move the popup

## Keyboard

| Key              | Action                          |
|------------------|---------------------------------|
| `` / `k`        | Navigate up                     |
| `` / `j`        | Navigate down                   |
| `Tab`            | Navigate down                   |
| `Shift+Tab`      | Navigate up                     |
| `gg`             | Go to first item                |
| `G`              | Go to last item                 |
| `Enter`          | Confirm selection               |
| `Space`          | Toggle item (multi-select only) |
| `Esc`            | Cancel                          |
| `Ctrl` + `c`     | Emergency exit                  |