Texivi

Projects / AVTTY

AVTTY

AVTTY (A Very Tiny Text Yard) is a small, friendly and experimental text editor for the terminal, written in C.

Making a file, saving it and quitting without saving

Meet avtta

avtta (a very tiny text assistant) is the small character that comes with AVTTY. It stays out of the way and appears only when something needs your attention, for example after a save, or when you try to quit with unsaved changes.

The start screen, with avtta saying hi
All of the poses of avtta

To create a file, type its name. AVTTY opens a new, empty file.

Typing a file name
A new empty file

Syntax highlighting

AVTTY colours the code you write and indents new lines for you.

Typing some C
avtta cheering after a save
avtta worried about unsaved changes

Finding things

There are three kinds of search. Ctrl-F looks for text in the file you are editing. Ctrl-P looks for a file by its name. Alt-F looks for text in every file in the folder.

Finding text in a file
Finding a file by name
Finding text in all files

Asking avtta

If you forget a shortcut, press F1 in the editor (or / on the start screen) and describe what you want to do, for example "undo", "jump to a line" or "save". avtta looks up the shortcut for you. F1 or Alt-H also lists every key.

Asking avtta about undo
avtta when it does not know
All the keys

Small on purpose

AVTTY is about 2,800 lines of C, which is roughly 110 KB of source, and it builds to a program of about 100 KB. That is small enough to read in an afternoon, and it runs anywhere you have a terminal.

It edits one file at a time. It has no plugins, no split windows and no macros. If you need those, AVTTY is probably not the right tool.

Install

git clone https://github.com/texivi/avtty
cd avtty
chmod +x install.sh
./install.sh

You can also build it yourself:

cc -O2 -o avtty avtty.c

Run avtty -h for help.