stdedit

command module
v0.0.0-...-1349610 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2021 License: MIT Imports: 7 Imported by: 0

README

stdedit

stdedit is a tool which edits standard input with your favorite editor.

Description

Edit stdin with your favorite editor and the result is out to stdout.
It uses the editor provided via its argument or the environment variable $STDEDIT (Default is vim).
GUI editor is not supported.

Installation

go get github.com/kita127/stdedit

Usage

echo hello | stdedit vim | pbcopy

This opens the editor and puts "hello".
After you save changes and close the editor, the results are copied into your clipboard.

You can specify which editor to use via $STDEDIT.

export STDEDIT=vim
echo hello | stdedit | pbcopy

The argument is prioritized over the environment variable.

License

This software is released under the MIT License, see LICENSE.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL