pi-open-here
v0.1.0
Published
Open current directory (or a path) in external editor from pi
Downloads
16
Readme
pi-open-here
Open current directory (or a path) in an external editor from pi.
This extension adds one command:
| Command | Description |
|---------|-------------|
| /open-here [path] | Open current directory (default) or a given path in an editor app |
Install
From npm:
pi install npm:pi-open-hereFrom GitHub:
pi install https://github.com/omaclaren/pi-open-hereTry without installing:
pi -e https://github.com/omaclaren/pi-open-hereUsage
/open-here
/open-here .
/open-here ~/Git-Working/pi-studio
/open-here "docs/spec with spaces.md"
/open-here --helpLauncher resolution order
The extension tries launchers in this order:
PI_OPEN_EDITOR_CMDVISUALEDITOR- Built-in CLI launchers (
code,cursor,windsurf,zed,subl,idea) - macOS app launchers via
open -a ...(macOS only)
The first launcher that exists and succeeds is used.
Notes
- Path arguments support quotes and
~expansion. - If a target path does not exist yet, the extension warns but still attempts to launch.
- Command lookup uses
whichon Unix/macOS andwhereon Windows. /codeis intentionally not registered as an alias.
License
MIT
