sled

sled is a simple text editor with a terminal UI.

o oo oo oo o o o o

Manual

See https://strahinja.srht.site/man/sled/sled.1.html.

=> https://strahinja.srht.site/man/sled/sled.1.html

Q&A

Q: Why? A:* Because newcomers don't find vi(m) comfortable. Something akin to EDIT.COM is usually perceived as more familiar: type text straight away, C-S to save, then C-Q. (Sled still has vim-like behavior, but it is “reverse” - default is insert mode, from which you can enter command mode.)

Currently, termbox doesn't support getting the character from its display buffer, which would enable testing for this case and handling it (but see [1]).

=> [1]

Prerequisites

$ make test

## Install

$ git clone https://git.sr.ht/~strahinja/sled

$ cd sled

$ su

make install

With got:  

=> https://gameoftrees.org	got

$ got clone https://git.sr.ht/~strahinja/sled

$ got checkout sled.git

$ cd sled

$ su

make install


## Persistent build configuration file

The file config.mk will be sourced when building targets which also accept configuration through environment variables.  For example, CPPFLAGS and PREFIX are specified in config.mk.  
## OpenBSD

Before running make(1), comment the CPPFLAGS definition in config.mk above the line with the “OpenBSD” comment and uncomment the one below it:  

CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \

-D_XOPEN_SOURCE=700

OpenBSD

CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \

	  -D_XOPEN_SOURCE=700 -D_BSD_SOURCE


Also, do the same for MANPREFIX:  

MANPREFIX = $(DESTDIR)$(PREFIX)/share/man

OpenBSD

MANPREFIX = $(DESTDIR)$(PREFIX)/man


## Install (Arch)

$ git clone https://aur.archlinux.org/sled.git

$ cd sled

$ makepkg -si


## Applying patches

To apply any patches, change the current directory to the one holding the sled repository, then:  

$ git am path_to_patch/filename-of-patch.patch


and then call make as above. Included patches are located inside the patch/ subdirectory.  
With got: 

$ got patch path_to_patch/filename-of-patch.patch

Proxy Information
Original URL
gemini://gemini.strahinja.org/sled
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
139.726454 milliseconds
Gemini-to-HTML Time
1.050222 milliseconds

This content has been proxied by September (ba2dc).