Skip to content

Lartu/led

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lute

Version License Size

led, the LDPL Text Editor, is a line text editor written in LDPL, inspired by the ed and sed text editors, but friendlier!

Watch led in action!

asciicast

Building led

Clone this repository using the -r flag to also clone dvkt's wonderful ldplnoise library, cd into the cloned led repository and run ldpl led.ldpl -o=led. Done!

Releases

You can download pre-compiled binaries of led for amd64 Linux from the releases section of this repository.

Usage

Run led <file> to open <file> and edit it. Alternatively you can just run led to create a new, empty file.

led has working two modes, command mode and append mode. When in command mode, all text entered is interpreted as a command. When in append mode, all text entered is appended to a buffer. To exit append mode, enter a line with just a dot in it (.).

Commands

  • h shows this command list.
  • l lists the contents of the buffer.
  • l <from> lists the buffer from line <from>.
  • l <from> <count> lists <count> lines from the buffer from line <from>.
  • a enters append mode.
  • a <from> enters append mode and appends text to the buffer at line <from>.
  • d <line> deletes line <line> from the buffer.
  • d <from> <count> deletes <count> lines from the buffer from line <from>.
  • i s file information.
  • q exits led.
  • c clears the screen.
  • s saves the buffer to a file.
  • n changes the name of the destination file.
  • r <line> allows retyping of line <line>.

License

led was created by Lartu and is released under the GPLv3 license.