pyvipe is a Python port of vipe.
pyvipe's command is vipe
This project is a by-product of trrc feature development.
pip install pyvipe
pip install .
command1 | vipe | command2
Use --suffix
to apply file syntax highlighting.
If you edit such a CRLF PIPE but want vipe to print it as a universial newline, then use --universal-newline
. This option is for a Windows generated text file.
pyvipe chooses the editor to use with the environment variable $VISUAL
. If it is unset, it uses $EDITOR
. If both are unset, it uses /usr/bin/editor
if it exists. If none of those work, it defaults to vi.
In general, editor can exit with nonzero when you execute some command for various purposes. e.g preventing git rebase. But if you didn't execute the command but the editor exited with nonzero, it may be because of wrong user configuration for the editor.
For vi, you can debug it with EDITOR='vi -u NONE' vipe
Version | Note |
---|---|
HEAD | fix changing encoding. |
0.2.1 | fix UnicodeEncodeError. |
0.2.0 | add universal-newline option. support editor variable with option. |
0.1.3 | fix shell completion. |
0.1.2 | add suffix option. fix error. |
0.1.1 | init |
If it doesn't work as original vipe, then it's a bug.