A simple Text Editor, build using Rust.
For now can do everything a normal wordpad/notepad can do.
Schreiber uses termion
, which is designed to work on Unix-like system, including Linux and macOS.
So to work on windows we will be using wsl
.
Instruction to install WSL
If you don't already have Rust installed, you can install it by following the instructions at https://www.rust-lang.org/tools/install.
git clone https://github.com/jiisanda/schreiber.git
After cloning the repository and installing Rust, you can build and run the project using Cargo, Rust's package manager and build system. Navigate to the project directory in your terminal and run:
$ cargo build
$ cargo run
This will compile the project and run it. If you make changes to the code, you can recompile it by running cargo build
again.
For opening a file run cargo run <filename>
. In our case\
cargo run welcome.txt
Notice how at the bottom, schreiber shows it is modified.
If modified file is exited without saving, it asks for pressing Ctrl-X
3 times, to ensure you surly don't want to
save changes.