sled is a simple text editor with a terminal UI.
o oo oo oo o o o o
See https://strahinja.srht.site/man/sled/sled.1.html.
https://strahinja.srht.site/man/sled/sled.1.html
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]).
$ make test
## Install
$ git clone https://git.sr.ht/~strahinja/sled
$ cd sled
$ su
With got: => https://gameoftrees.org got
$ got clone https://git.sr.ht/~strahinja/sled
$ got checkout sled.git
$ cd sled
$ su
## 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 -D_BSD_SOURCE
Also, do the same for MANPREFIX:
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
Both with git and got, it is advisable to create a separate branch holding the modifications, which can be rebased onto upstream when it changes. ## Contributing patches See the file HACKING in the sled repository for details. => https://git.sr.ht/~strahinja/sled/blob/d96590dd836da784c4949774f054b1c359caf705/HACKING HACKING ## Bugs and limitations Bugs can be reported using the ticket tracker. See the manpage (man sled) after installing sled for more information. => https://todo.sr.ht/~strahinja/sled/ ticket tracker ## License sled - Simple text editor Copyright (C) 2022-2024 Страхиња Радић This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/. => https://www.gnu.org/licenses https://www.gnu.org/licenses/ File termbox.h is based on termbox2 TUI library, (c) 2021 termbox developers, which is released under the terms of Expat license, see the file LICENSE.termbox. => https://github.com/termbox/termbox2 termbox2 => https://git.sr.ht/~strahinja/sled/blob/d96590dd836da784c4949774f054b1c359caf705/LICENSE.termbox LICENSE.termbox Generated by slw2gmi © 2021-2024 Strahinya Radich. => gemini://gemini.strahinja.org/slw2gmi/ slw2gmi