Metadata-Version: 2.5
Name: raedir
Version: 0.1.0
Summary: Terminal GUI for downloading JLCPCB/LCSC parts into KiCad via easyeda2kicad
Project-URL: Homepage, https://github.com/raedir/raedir
Author: Raedir
License-Expression: MIT
License-File: LICENSE
Keywords: easyeda,jlcpcb,kicad,lcsc,tui
Requires-Python: >=3.10
Requires-Dist: easyeda2kicad>=1.0.0
Requires-Dist: textual>=1.0.0
Description-Content-Type: text/markdown

# Raedir

Terminal GUI for pulling JLCPCB / LCSC parts into KiCad — wrap `easyeda2kicad`, browse your library, and optionally restart KiCad so new parts show up immediately.

```bash
# Recommended (isolated CLI on your PATH):
pipx install raedir

# Or from a clone:
cd ~/Projects/Raedir
pipx install -e .

# Dev install in a venv:
python3 -m venv .venv && source .venv/bin/activate
pip install -e .

raedir
```

## What it does

- **Add parts** — paste an LCSC id (`C2040`) and download symbol + footprint + 3D
- **Browse library** — search your `easyeda2kicad` library, sort by recently added / similar footprints
- **Find KiCad** — locates KiCad’s Python, `easyeda2kicad`, and the parts folder on any machine
- **Reload KiCad** — saves open work, quits, reopens the same project, restores window layout (macOS)

## First-time setup

1. Install Raedir (`pip install raedir` or `pipx install raedir`)
2. Run `raedir` — on first launch it will:
   - search for KiCad / `easyeda2kicad`
   - offer to install `easyeda2kicad` into KiCad’s Python if missing
   - create `~/Documents/KiCad/easyeda2kicad/` if needed
   - ensure the library is registered in KiCad’s global lib tables
3. Type `raedir` anytime from a terminal

## UI

Left panel buttons:

- **Add part** — download by LCSC id / URL
- **Place on schematic** — drop the selected part onto the open KiCad schematic
- **Open datasheet** — open the selected part’s datasheet
- **Open in Finder / Explorer** — opens the parts library folder
- **Reload KiCad** — save → quit → reopen editors + restore windows

Click any column header to sort ascending/descending. Theme follows system light/dark.

## Config

Stored in `~/.config/raedir/config.json` (paths, auto-reload preference, history).

## macOS notes

**Place on schematic** and **Reload KiCad** need Accessibility (Assistive Access). If permission is missing, Raedir opens a prompt with an **Open Settings** button.

Enable the app that runs `raedir` under **System Settings → Privacy & Security → Accessibility** (Terminal, iTerm, Cursor, etc.), then retry.

Reload reopens the same project **and** any Schematic / PCB editor windows that were open, then restores their positions.
