Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/inokawa/rust-editor
An implementation of text editor with Rust/WebAssembly.
https://github.com/inokawa/rust-editor
editor kilo rust text-editor wasm web webassembly
Last synced: 15 days ago
JSON representation
An implementation of text editor with Rust/WebAssembly.
- Host: GitHub
- URL: https://github.com/inokawa/rust-editor
- Owner: inokawa
- License: mit
- Created: 2021-02-03T00:59:37.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-31T18:37:42.000Z (16 days ago)
- Last Synced: 2024-10-31T19:27:37.632Z (15 days ago)
- Topics: editor, kilo, rust, text-editor, wasm, web, webassembly
- Language: Rust
- Homepage: https://inokawa.github.io/rust-editor/
- Size: 2.4 MB
- Stars: 29
- Watchers: 3
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rust-editor
![deploy](https://github.com/inokawa/rust-editor/workflows/check/badge.svg)[![demo](https://github.com/inokawa/rust-editor/actions/workflows/demo.yml/badge.svg)](https://github.com/inokawa/rust-editor/actions/workflows/demo.yml)
WIP
An implementation of text editor with Rust/WebAssembly.
This is a hobby project just for my study, but I'm trying to make it as much as practical.
This editor is roughly based on [kilo](https://github.com/antirez/kilo), but has some improvements.
- Support ASCII/UTF-8 encoded texts
- Support Undo/Redo
- Run on terminal in UNIX, and on browser with WebAssemblyNOTE: Some features are not implemented completely.
## Demo
https://inokawa.github.io/rust-editor/
## Start
### CLI
```sh
git clone [email protected]:inokawa/rust-editor.git
cd rust-editor
cargo run "path/to/file.txt"
```| Shortcuts | Action |
| --------- | ------ |
| Ctrl+Z | Undo |
| Ctrl+Y | Redo |
| Ctrl+F | Search |
| Ctrl+S | Save |
| Ctrl+Q | Quit |### Web
```sh
git clone [email protected]:inokawa/rust-editor.git
cd rust-editor/web
npm install
npm start
```## References
Thank you for this great tutorial of kilo:
- https://viewsourcecode.org/snaptoken/kilo/
And thank you for other great implementations of kilo:
- https://github.com/rhysd/kiro-editor
- https://github.com/ilai-deutel/kibi
- https://www.philippflenker.com/hecto/
- https://github.com/nkon/ked-texteditor