Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jiisanda/schreiber
Schreiber is a simple text editor build using Rust.
https://github.com/jiisanda/schreiber
Last synced: about 7 hours ago
JSON representation
Schreiber is a simple text editor build using Rust.
- Host: GitHub
- URL: https://github.com/jiisanda/schreiber
- Owner: jiisanda
- Created: 2023-08-26T07:39:05.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-17T17:27:08.000Z (10 months ago)
- Last Synced: 2024-01-18T01:09:07.803Z (10 months ago)
- Language: Rust
- Homepage:
- Size: 85.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Schreiber
A simple Text Editor, build using Rust.
## Features
For now can do everything a normal wordpad/notepad can do.
## Installation
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`.### Setup WSL
Instruction to install [WSL](https://docs.microsoft.com/en-us/windows/wsl/install-win10)
### Setup Rust
If you don't already have Rust installed, you can install it by following the instructions at
[https://www.rust-lang.org/tools/install](https://www.rust-lang.org/tools/install).### Clone the repository
```command line
git clone https://github.com/jiisanda/schreiber.git
```### Build and Run the Project
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:```command line
$ 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.## Usage | Demo
1) Window Screen
Output of `cargo run`
![window_screen](docs/imgs/window_screen.png)
2) Saving a file
`Ctrl-S`, after writing to a file...
![save_a_file](docs/imgs/save_a_file.png)
3) Editing a fileFor opening a file run `cargo run `. In our case\
```command line
cargo run welcome.txt
```![after_edit](docs/imgs/after_edit.png)
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.