edit is a modal, terminal-based text editor. It aims to provide a simple yet powerful editing model, in a suckless-style codebase.

edit uses a selection-centric, selection-then-action model inspired by kakoune, where a selection is a set of contiguous characters on a given line. Indeed, most commands act on a list of selections: on saved selections if any, otherwise on running selections.

By default, the running selections list contains only the cursor, making the selection abstraction invisible for simple editing. It is also possible to drop an anchor below the cursor, making running selections contain all characters between the anchor and the cursor. For more elaborate editing, such as multi-cursor or column editing, there are several ways to save selections.

Links

Install

VERSION="0.3.2"
wget https://jacquin.xyz/edit-$VERSION.tar.gz
tar -x -f edit-$VERSION.tar.gz
cd edit-$VERSION
make install # as root