Skip to content

inokawa/rust-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-editor

deploydemo

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, but has some improvements.

  • Support ASCII/UTF-8 encoded texts
  • Support Undo/Redo
  • Run on terminal in UNIX, and on browser with WebAssembly

NOTE: Some features are not implemented completely.

Demo

https://inokawa.github.io/rust-editor/

Start

CLI

git clone git@github.com: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

git clone git@github.com:inokawa/rust-editor.git
cd rust-editor/web
npm install
npm start

References

Thank you for this great tutorial of kilo:

And thank you for other great implementations of kilo: