pi-set-editor
Choose and save the external editor used by Ctrl+G in pi
Package details
Install pi-set-editor from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-set-editor- Package
pi-set-editor- Version
0.1.0- Published
- Feb 24, 2026
- Downloads
- 26/mo · 7/wk
- Author
- omacl
- License
- MIT
- Types
- extension
- Size
- 21.5 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-set-editor
Choose which external editor pi uses for Ctrl+G.
This extension adds a small editor-selection workflow so you can switch editors per session, and optionally save a default.
Commands
| Command | Description |
|---|---|
/set-editor |
Pick an editor for this session only |
/set-editor <name> |
Set editor by name for this session only (e.g. micro, nvim, zed) |
/set-editor-save |
Pick an editor and save it as your default |
/set-editor list |
Show known editors and availability |
/set-editor discover |
Show only detected editors on PATH |
/set-editor find <text> |
Filter editor list |
/set-editor current |
Show current $VISUAL/$EDITOR and saved default |
/set-editor add <name> <command...> |
Add/update a custom editor command |
/set-editor remove <name> |
Remove a custom editor command |
/set-editor reset |
Clear saved default and custom editor list |
/editors |
Alias for /set-editor |
Install
pi install npm:pi-set-editor
Or from git:
pi install https://github.com/omaclaren/pi-set-editor
Or run directly:
pi -e https://github.com/omaclaren/pi-set-editor
Notes
/set-editoris session-only (does not persist)./set-editor-savepersists your selection to~/.pi/agent/set-editor.json.- The extension updates
process.env.VISUALandprocess.env.EDITORfor the current pi process. - It does not change your global shell/app environment.
- Default known editors include
micro,nvim,vim,zed,code,cursor,windsurf, and more.
License
MIT