Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dramforever/sledit

A single-line-interface editor
https://github.com/dramforever/sledit

Last synced: about 1 month ago
JSON representation

A single-line-interface editor

Awesome Lists containing this project

README

        

# `sledit`: A single-line-interface editor

![Screenshot of sledit editing a simple three-line file](screenshot.png)

## Building and running

```console
$ make
$ make run
```

`sledit` requires a terminal with ANSI-style control sequences.

When run, it expects the terminal to be in "raw mode" with echo off. `make run` sets this "raw mode" up for you.

## Special keys

- Ctrl-C exits the editor
- Ctrl-L prints entire buffer
- Backspace deletes backward
- Delete deletes forward
- Up and Down moves between lines
- Right and Left moves forward and backward one character
- Ctrl-Right and Ctrl-Left moves one word
- Home and End goes to start and end of line