ksi

Crates.ioksi
lib.rsksi
version0.0.1
sourcesrc
created_at2023-10-29 12:41:47.08307
updated_at2023-10-29 12:41:47.08307
descriptionA ed-like text editor
homepagehttps://github.com/johngitahi/ksi
repositoryhttps://github.com/johngitahi/ksi
max_upload_size
id1017522
size11,891
Gitahi (johngitahi)

documentation

README

ksi - cli ed-like text editor

This is a simple command line text editor I have written in Rust. It allows you to view, edit, and save text files from the command line. (just as how ed works)

Usage

  • a command allows you to add text to the file you are editing.
  • n command displays all the contents of the file with line numbering.
  • d <line number> allows you to delete a specific text using their line number.
  • q quits the text editor.

Installing

  1. Build the binary using Cargo:
cargo install ksi
  1. Run the ksi text editor, specifying a text file as a command line argument:
ksi file.TXT
  1. Use the above commands to interact with the file.

  2. After making changes, save the changes back to the original file by quitting the editor with q command.

Dependencies

This project uses the colored crate for line number styling. It is in the Manifest file and will be installed by default when you build the binary.

License

This project is released under the AGPL-3.0. Please read the LICENSE file for the full license text and terms.

Author

  • John Gitahi
Commit count: 6

cargo fmt