Crates.io | iota-editor |
lib.rs | iota-editor |
version | |
source | src |
created_at | 2016-01-04 14:16:07.789218 |
updated_at | 2016-01-04 14:16:07.789218 |
description | A simple text editor |
homepage | https://github.com/gchp/iota |
repository | https://github.com/gchp/iota |
max_upload_size | |
id | 3826 |
size | 0 |
Iota is a terminal-based text-editor written in Rust.
Here's what it looks like right now, editing itself.
Iota was born out of my frustrations with existing text editors. Over the years I've tried combinations of simple text editors, IDEs and everything in between. None of them felt right to me, however. Some were too slow & bulky, others were too difficult to customise and still others were platform specific and I couldn't use them on all my machines.
I started building Iota with the view of combining ideas and features from serveral different editors while designing it to work on modern hardware.
Why Rust? Because its fun and why not!
The goals for Iota are that it would be:
Iota is still in the very early stages, and is probably not ready for every day use. Right now the focus is on implementing and polishing the basic editing functionality.
Windows support is coming, but it's somewhat slow right now. Help with this would be greatly appreciated!
Note on Rust integration: The aim is to support code editing in all languages (and of course plain text), with a lean towards Rust and integration with Rust tools. I don't intend it to be a "Rust IDE" or "Rust only", however I think it would be cool to experiment with integration with Rust tooling. This could also be applied to other languages too.
Clone the project and run make
or cargo build --release
.
NOTE: Iota needs to be built using the nightly toolchain for now, not 1.0.0. Multirust is very useful for managing multiple rust versions.
Then to start the editor run ./target/release/iota /path/to/file.txt
. Or
simply ./target/release/iota
to open an empty buffer.
You can also create buffers from stdin
.
# open a buffer with the output of `ifconfig`
ifconfig | ./target/release/iota
You can move the cursor around with the arrow keys.
To save, press Ctrl-s
.
To exit, press Ctrl-q
.
Iota currently supports both Vi and Emacs style keybindings for simple movement.
You can enable Vi style keybindings by using the --vi
flag when starting Iota.
The vi-style modes are in the early stages, and not all functionality is there
just yet. The following works:
k
move upj
move downl
move forwardsh
move backwardsw
move one word forwardb
move one word backward0
move to start of line$
move to end of lined
deleteu
undor
redoi
insert mode:q
quit:w
saveESC
normal modeAlternatively, you can use the following emacs-style keys:
Ctrl-p
move upCtrl-n
move downCtrl-b
move backwardsCtrl-f
move forwardsCtrl-a
move to start of lineCtrl-e
move to end of lineCtrl-d
delete forwardsCtrl-h
delete backwardsCtrl-x Ctrl-c
quitCtrl-x Ctrl-s
saveCtrl-z
undoCtrl-y
redo