Skip to main content

edit pipe with your editor.

Project description

pyvipe

INTRODUCTION

pyvipe is a Python port of vipe. pyvipe's command is vipe

This project is a by-product of trrc feature development.

INSTALLATION

pip

pip install pyvipe

Manual Installation

pip install .

USAGE

command1 | vipe | command2

Use --suffix to apply file syntax highlighting.

pyvipe special options

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.

Environment Variables

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.

FAQ

Editor exited nonzero, aborting.

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

Changelog

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

CONTRIBUTION

If it doesn't work as original vipe, then it's a bug.

Thanks to

Nick ODell

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyvipe-0.2.2.tar.gz (21.4 kB view hashes)

Uploaded Source

Built Distribution

pyvipe-0.2.2-py3-none-any.whl (19.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page