Skip to content
dwbutlerPublic

About

Edit files inside of pi

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

pi-editor

A pi extension that opens files in your preferred editor from within pi.

Install

pi install npm:pi-editor

Or try it without installing:

pi -e npm:pi-editor

Usage

/edit <path>   Open a file in $VISUAL or $EDITOR

The command resolves the path relative to your current working directory and spawns the editor attached to your terminal. If the file doesn't exist, you'll be prompted to create it.

Editor Selection

The extension checks these environment variables in order:

  1. $VISUAL — preferred for full-screen editors (e.g. nvim, code --wait)
  2. $EDITOR — fallback (e.g. vim, nano)
  3. vi — default if neither is set

License

MIT

About

Edit files inside of pi

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages