repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

extensions/open/README.md

Raw

open

Open mentioned files in Neovim beside Pi.

Install / load

Loaded through the root pi-ext package. See root README.

Commands / tools / settings

Commands:

Tools: none.

Hooks:

Settings: none.

Behavior

/open reads the current session branch when invoked. It ranks existing file mentions by source: user, assistant, edit, then write. Paths are deduplicated and limited to 20. The picker keeps paths prominent and shows the source as its description.

The selected file opens through $EDITOR in a new right-hand WezTerm split using 69 percent of Pi's pane. The editor starts in the project root and receives an absolute file path. Launch is asynchronous; the pane closes when the editor exits.

Markdown source
File outline
# open

Open mentioned files in Neovim beside Pi.

## Install / load

Loaded through the root `pi-ext` package.
See [root README](../../README.md).

## Commands / tools / settings

Commands:

- `/open PATH` opens an existing file directly.
- `/open` opens the sole recent file or a fuzzy picker for multiple files.

Tools:
none.

Hooks:

- `session_start` reports missing WezTerm, `$EDITOR`, or pane context.

Settings:
none.

## Behavior

`/open` reads the current session branch when invoked.
It ranks existing file mentions by source: user, assistant, edit, then write.
Paths are deduplicated and limited to 20.
The picker keeps paths prominent and shows the source as its description.

The selected file opens through `$EDITOR` in a new right-hand WezTerm split using 69 percent of Pi's pane.
The editor starts in the project root and receives an absolute file path.
Launch is asynchronous; the pane closes when the editor exits.