Automated typing in the Vi editor.
Project description
ezvi
ezvi is a python package that allows typing automation for the Vi editor.
Installation
ezvi is distributed as a Pip package. To install the program, simply run
pip install ezvi
Usage
The package can be used via the CLI. ezvi functions can also be imported and used in a Python program.
The CLI
There are two different ways of using ezvi via the command line.
The text command
text can be used to type a pre-written file. It takes one argument (infile and one option (--writefile).
infileis the path towards the pre-written file.--writefiletells the program to save the file again after typing it.--writefiletakes one argument that corresponds to the path where the typed file will be written.
Example
ezvi text -w ./foo.txt example/message.txt
This takes the message.txt example from the example directory and types it again. The Vi buffer is then written to ./foo.txt.
The yaml command
yaml should be used to take a configuration as instructions to type a new file. The yaml command only takes one argument (config). Everything else should be specified in the config file.
configis the path towards the configuration file.
Example
ezvi yaml example/config.yaml
This command would take the config.yaml file from the example directory and use it to type a new file.
Writing a config file
A configuration file is just a yaml file that will be parsed using PyYAML. The structure of the file should be similar to the one in the config.yaml file from the example directory.
- write_line: "Hello!"
- new_line: 2
- write_chars: "-- Good Bot."
- write_file: "message.txt"
- quit_editor:
A - must precede every action.
Documentation
For more in depth documentation, please refer to the Read the Docs
Development
This package is in alpha. Not much testing has been done and many things could still change. To see the latest commit, go check the latest branch.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ezvi-0.1.7.tar.gz.
File metadata
- Download URL: ezvi-0.1.7.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.8.10 Linux/5.4.0-1059-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3264eb4a9c889c7c82ffb7e64aef4b3286893f3b30894fb96db2c33095210204
|
|
| MD5 |
79f7b251bc6617ce35248f5b4affaef5
|
|
| BLAKE2b-256 |
883c16b577defd187d2aa8f9a3ce5da4bae82083be5ec1f275c4eb5020369197
|
File details
Details for the file ezvi-0.1.7-py3-none-any.whl.
File metadata
- Download URL: ezvi-0.1.7-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.8.10 Linux/5.4.0-1059-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab0010c881cf93373a16f4bf2759e74ec8d1d6064c4c04dafbb4fc277830e3d6
|
|
| MD5 |
9f6ceee3ab77289ed176fe154fc5f9b3
|
|
| BLAKE2b-256 |
0b6c8060cd79fa5616ffb4624bcb2ddfe3aa9d077e3275e60121cb05f0691ef5
|