#text #editor #terminal #termion

app smith

Smith is a simple terminal-based text editor written in Rust

21 releases (7 stable)

✓ Uses Rust 2018 edition

1.3.0 Feb 14, 2020
1.2.2 Jan 6, 2019
1.2.1 Dec 3, 2018
1.1.1 Nov 21, 2018
0.3.8 Nov 2, 2016

#2 in #editor

Download history 3/week @ 2019-12-14 2/week @ 2019-12-21 22/week @ 2019-12-28 2/week @ 2020-01-04 23/week @ 2020-01-11 83/week @ 2020-01-18 3/week @ 2020-01-25 4/week @ 2020-02-01 33/week @ 2020-02-08 21/week @ 2020-02-15 94/week @ 2020-02-22 5/week @ 2020-02-29 48/week @ 2020-03-07 22/week @ 2020-03-14 85/week @ 2020-03-21 26/week @ 2020-03-28

148 downloads per month

MIT license

155KB
1.5K SLoC

Smith

Crate status Build status

Smith is a simple terminal-based text editor written in Rust.

Install

Using Cargo:

cargo install smith

To compile Smith with clipboard support on Ubuntu, you may need to install some libraries:

sudo apt-get install -qq xorg-dev libxcb-render-util0-dev libxcb-shape0-dev libxcb-xfixes0-dev

Features

  • line numbers
  • syntax highlighting
  • undo/redo
  • standard keybindings (Ctrl-S, Ctrl-Z, Ctrl-C, Esc...)
  • mouse support
  • clipboard support

With more planned such as user configurations, search & replace, persistent undo, etc.

Here's what it looks like editing its own source code:

Smith in action

Dependencies

~5.5MB
~101K SLoC