A simple, portable, and small GNU Emacs style editor
|
6 hours ago | |
---|---|---|
docs | 5 months ago | |
.gitignore | 5 months ago | |
AE_LICENSE | 2 months ago | |
BSD_LICENSE | 2 months ago | |
LICENSE | 2 months ago | |
README.md | 2 months ago | |
TODO.md | 3 days ago | |
buffer.c | 2 months ago | |
command.c | 6 hours ago | |
complete.c | 2 months ago | |
display.c | 3 days ago | |
gap.c | 2 months ago | |
header.h | 6 hours ago | |
hilite.c | 2 months ago | |
key.c | 6 hours ago | |
main.c | 3 days ago | |
makefile | 3 days ago | |
replace.c | 2 months ago | |
search.c | 2 months ago | |
sent | 3 days ago | |
shell.c | 3 days ago | |
termbox.h | 2 months ago | |
util.c | 2 months ago | |
util.h | 2 months ago | |
window.c | 2 months ago |
Ait is inspired by GNU Emacs and mle. Based on Atto. Started as a fork of Atto but was then ported to Termbox2 to become what it is now. Ait can be compiled with no dependencies other than libc. It should work on all unix-like systems although I've only tried it on MacOS and NetBSD.
Once Ait completes the above goals and does them well, there are a few other goals that I'd like implement.
ls
or compiling somethingAit stands for Atto In Termbox or Atto Implemented in Termbox. Also, an ait is a small island usually found in rivers.
From Atto's README: "Atto is based on the public domain code of Anthony Howe's editor (commonly known as Anthony's Editor or AE, [2]). Rather than representing a file as a linked list of lines, the AE Editor uses the concept of a Buffer-Gap [4,5,6]. A Buffer-Gap editor stores the file in a single piece of contiguous memory with some extra unused space known as the buffer gap. On character insertion and deletion the gap is first moved to the current point. A character deletion then extends the gap by moving the gap pointer back by 1 OR the gap is reduced by 1 when a character is inserted. The Buffer-Gap technique is elegant and significantly reduces the amount of code required to load a file, modify it and redraw the display. The proof of this is seen when you consider that Atto supports almost the same command set that Pico supports, but Pico requires almost 17 times the amount of code."
Ait comes from Atto so the derivation is trival. I just ported it to termbox and started hacking in my own changes for fun.
Ait code is released under the BSD 3-Clause License. Atto code is released to the public domain. Anthony's Editor code claims to be public domain but contains a questionable (see AE_LICENSE) license that isn't actually public domain. See the LICENSE file for the offical statements.
Hugh Barney for writing Atto. Anthony Howe for writing Anthony's Editor. GNU Emacs for keybindings, power, and inspritation. mle for inspiration. Termbox for being nice. Adam Saponara for making the previous 2.