A lightweight linear interactive text editor with a friendly command-line interface.
"Easy as pie."
- Line-oriented interface.
- Ed-like commands, but simpler.
- Case-insensitive command input.
- Displays the current line along with neighboring lines.
- Shows user errors.
git clone https://codeberg.org/Itcor/Edpie
cd Edpie
make
./edpieMake sure you have git, make, and musl installed.
The user is prompted to enter commands to work with the file. Commands are case-insensitive, meaning wq is equivalent to WQ, wQ, or Qw.
To get help on commands, type h.
j - move down by one line
k - move up by one line
Example: j
jN - move down by N lines relative to the current line
kN - move up by N lines relative to the current line
Example: j2
N - move to a specific line.
Example: 16
Insert line(s) before. To finish input, enter i// on a separate line.
Example:
i
Nos quoque et extinguimur et accendimur;
medio illo tempore aliquid patimur,
utrimque vero alta securitas est.
i//
i - start input (insert).
Example: i
iN - start input at line N.
Example: i42
a - append text after the current line.
Example: a
aN - append after line N.
To finish input, enter a// on a separate line, similar to the i command.
a
Nos quoque et extinguimur et accendimur;
medio illo tempore aliquid patimur,
utrimque vero alta securitas est.
a//
c TEXT - change the text on the current line.
Example: c Nos quoque et extinguimur et accendimur
q - exit the editor without saving.
w - save the file.
wq - exit and save.
p - print the current line.
pN - print line N.
d - delete the current line.
dN - delete line N.
- Static build — the compiled program does not depend on external libraries.
- Uses the lightweight musl library.