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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file pyvipe-0.2.2.tar.gz.

File metadata

  • Download URL: pyvipe-0.2.2.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pyvipe-0.2.2.tar.gz
Algorithm Hash digest
SHA256 8789c55c5a9d4c39d86a754724f85734594ae57a9f39b7b9ae900ea46112d12b
MD5 57f390b1fa409bf4930c560a869c41b4
BLAKE2b-256 dd2515a880713248439cde5ca0c2b2da6370d9868bfff4ae2cb699d1bd03c2cb

See more details on using hashes here.

File details

Details for the file pyvipe-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: pyvipe-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pyvipe-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1223f5c25ee470627af8b8428fc5ec884e012ae73d3e7c2229c3977374ad8d43
MD5 3b2f12ba1ee69ed480b6696f74279b22
BLAKE2b-256 a58fd02257e4e2f0927685d4698e0c7e7161e28878d50ae0899b82e58f111832

See more details on using hashes here.

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