A command-line tool that opens stdin in your editor, lets you edit the content interactively, and outputs the result to stdout.
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/muleyuck/edio/releases/latest/download/edio-installer.shbrew install muleyuck/tap/edioedio [OPTIONS]-e, --extension <EXTENSION>: Set file extension for the temporary file (default:txt)
Basic usage: Edit stdin and print to stdout
echo "Hello, World!" | edioEdit and save to a file
echo "Initial content" | edio > output.txtEdit stdin in specific editor(e.g. VSCode)
export EDITOR="code --wait"
echo "Initial content" | edio > output.txtEdit with specific file extension for syntax highlighting
cat script.py | edio -e py | pythonedio determines which editor to use in the following order:
$GIT_EDITORenvironment variable$VISUALenvironment variable$EDITORenvironment variablegit config core.editorvi(fallback)
- Unix-like operating system (Linux, macOS)
- Access to
/dev/ttywhen output is piped
