Skip to content
ravshansboxPublic

About

Zed editor context extension for pi

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

pi-zed

Zed editor context extension for pi.

pi-zed widget

Install

pi install npm:@ravshansbox/pi-zed

Add -l to install it in project settings.

Usage

Pi loads the extension from ./index.ts. It reads Zed's local SQLite state and:

  • shows a compact dim widget above the editor, in the same colour as the pi statusline, with the current Zed active file, selected line range, and count of other open files
  • injects active file, open files, selected line numbers, and selected text into each pi prompt as hidden untrusted context
  • registers zed_current_context, zed_open_files, and zed_selected_lines

It requires the sqlite3 CLI.

Configuration

Set PI_ZED_DB to override the Zed database path. If unset, the extension tries:

  • $OPENCODE_ZED_DB
  • ~/Library/Application Support/Zed/db/0-stable/db.sqlite
  • ~/.local/share/zed/db/0-stable/db.sqlite

Development

npm install
npm run check

About

Zed editor context extension for pi

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages