Skip to content

About

An implementation of text editor with Rust/WebAssembly.

Topics

Resources

Stars

43 stars

Watchers

2 watching

Forks

Latest commit

 

History

392 Commits

Folders and files

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

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

Shortcuts are the same as CLI (Cmd also works instead of Ctrl on macOS, except Cmd+Q).

  • Open: drop a file onto the page
  • Save: downloads the file
  • Quit: stops the editor, reload the page to restart

References

Thank you for this great tutorial of kilo:

And thank you for other great implementations of kilo:

About

An implementation of text editor with Rust/WebAssembly.

Topics

Resources

Stars

43 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages