Skip to content

TheItcor/Edpie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Edpie

A lightweight linear interactive text editor with a friendly command-line interface.

"Easy as pie."

Features

  • Line-oriented interface.
  • Ed-like commands, but simpler.
  • Case-insensitive command input.
  • Displays the current line along with neighboring lines.
  • Shows user errors.

Installation

git clone https://codeberg.org/Itcor/Edpie
cd Edpie
make
./edpie

Make sure you have git, make, and musl installed.

Commands

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.

Navigation

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

Input

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

Exit and Save

q - exit the editor without saving. w - save the file. wq - exit and save.

Output

p - print the current line. pN - print line N.

Deletion

d - delete the current line. dN - delete line N.

Features

  • Static build — the compiled program does not depend on external libraries.
  • Uses the lightweight musl library.

About

[MIRROR] Linear interactive text editor with a friendly CLI.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors