💾 Archived View for gemini.strahinja.org › sled captured on 2024-02-05 at 09:28:03. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-11-04)

➡️ Next capture (2024-03-21)

🚧 View Differences

-=-=-=-=-=-=-

sled

sled is a simple text editor with a terminal UI.

o oo oo oo o o o o

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.)

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

If you have djb redo:

# redo install

if you don't:

# ./do install

Persistent build configuration file

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

OpenBSD

Replace gcc in CC with cc and add -D_BSD_SOURCE, eg:

# CC='cc -g -Wall -pedantic -std=c99 -D_POSIX_C_SOURCE=200809L
	-D_XOPEN_SOURCE=700 -D_BSD_SOURCE -D_DEFAULT_SOURCE' \
	./do install

and change MANPREFIX to

MANPREFIX=$PREFIX/man

Install (Arch)

$ <aur_helper> -S sled

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 redo as above. Included patches are located inside the patch/ subdirectory.

Contributing patches

See the file HACKING in the sled repository for details.

HACKING

Bugs and limitations

Bugs can be reported using the ticket tracker. See the manpage (man sled) after installing sled for more information.

ticket tracker

License

sled - Simple text editor

Copyright (C) 2022-2023 Страхиња Радић

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/

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.

termbox2

LICENSE.termbox

Generated by slw2gmi © 2021-2023 Strahinya Radich.

slw2gmi