~strahinja/strahinja.srht.site

d6194b6066cda195e8fc02711c356d6b22a7136b — Страхиња Радић 4 months ago bc0afac
sled/*: New directory; Migrate index-meta.csv -> index-meta.tsv

Signed-off-by: Страхиња Радић <contact@strahinja.org>
19 files changed, 218 insertions(+), 62 deletions(-)

D poe/index-meta.csv
A poe/index-meta.tsv
M poe/index.slw
A sled/all.do
A sled/index-meta.tsv
A sled/index.slw
A sled/sled.css
D slw2gmi/index-meta.csv
A slw2gmi/index-meta.tsv
M slw2gmi/index.slw
D slweb/index-meta.csv
A slweb/index-meta.tsv
M slweb/index.slw
D table/index-meta.csv
A table/index-meta.tsv
M table/index.slw
D text-tools/index-meta.csv
A text-tools/index-meta.tsv
M text-tools/index.slw
D poe/index-meta.csv => poe/index-meta.csv +0 -10
@@ 1,10 0,0 @@
"Name","Content"
"og:type","website"
"og:url","%canonical%"
"og:title","%site-name%"
"og:description","%site-desc%"
"twitter:card","summary_large_image"
"twitter:url","%canonical%"
"twitter:title","%site-name%"
"twitter:creator","@strahinja_radic"
"twitter:description","%site-desc%"

A poe/index-meta.tsv => poe/index-meta.tsv +10 -0
@@ 0,0 1,10 @@
Name	Content
og:type	website
og:url	%canonical%
og:title	%site-name%
og:description	%site-desc%
twitter:card	summary_large_image
twitter:url	%canonical%
twitter:title	%site-name%
twitter:creator	@strahinja_radic
twitter:description	%site-desc%

M poe/index.slw => poe/index.slw +1 -1
@@ 4,7 4,7 @@ site-desc: .po file editor
inline-stylesheet: ../index.css
inline-stylesheet: poe.css
canonical: https://strahinja.srht.site/poe/
meta: index-meta.csv
meta: index-meta.tsv
---

{main}

A sled/all.do => sled/all.do +1 -0
@@ 0,0 1,1 @@
redo-ifchange index.html

A sled/index-meta.tsv => sled/index-meta.tsv +10 -0
@@ 0,0 1,10 @@
Name	Content
og:type	website
og:url	%canonical%
og:title	%site-name%
og:description	%site-desc%
twitter:card	summary_large_image
twitter:url	%canonical%
twitter:title	%site-name%
twitter:creator	@strahinja_radic
twitter:description	%site-desc%

A sled/index.slw => sled/index.slw +130 -0
@@ 0,0 1,130 @@
---
site-name: sled - Simple text editor
site-desc: Simple text editor
inline-stylesheet: ../index.css
inline-stylesheet: sled.css
canonical: https://strahinja.srht.site/sled/
meta: index-meta.tsv
---

{main}
# sled

**sled** is a simple text editor with a terminal UI.


## Q&amp;A

{dl}
{dt}
**Q: Why can't sled open the file &ldquo;read only&rdquo; even if modification
is disallowed?**{/dt}
{dd}{p}
**A:** A text editor's purpose should be to *edit* text files. For just
*viewing* text files, there's **less**(1). This avoids the situation when
opening a file one is not allowed to write to with an editor like **vi**(1),
only to have write operation denied after making numerous edits.{/p}
{p}
Of course, one could argue that screen editors like vi already double as text
file viewers, but I think of displaying the contents of a writable file as being
separate from displaying the contents of a non-writable file.{/p}
{p}
If this bothers you, you can use something like the included shell script
sledv.{/p}{/dd}

{dt}
**Q: Is editing multiple files planned?**{/dt}
{dd}
**A:** No, and this is by design. You can edit multiple files at the same time
by running multiple instances of sled. You can arrange them on screen through a
terminal multiplexer like **GNU screen**(1) or **tmux**(1), or just open several
terminal emulators like **st**(1) and have your window manager arrange their
windows. Inter-process &ldquo;clipboard&rdquo; can be managed by a terminal
multiplexer or X.Org itself.{/dd}

{dt}
**Q: Is there a _\~/.config/sled/config_ or _\~/.sledrc?_**{/dt}
{dd}
**A:** No, and never will be. sled is intended to be configured through editing
_config.h_ and recompilation, like suckless software.{/dd}

{dt}
**Q: Are plugins planned?**{/dt}
{dd}
**A:** No. Like suckless software, sled is meant to be extended through
patches.{/dd}

{dt}
**Q: How can I configure sled if I installed it (from AUR|through my distro's
package manager)?**{/dt}
{dd}
**A:** You don't. If you want customization/configuration, clone the git repo,
customize and compile it from source, just like with suckless
software.{/dd}{/dl}


## Prerequisites

* C compiler (**GCC**-compatible) - `${SLED_CC:-gcc}`
* **gzip**


## Install

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

If you have djb redo:

```
# redo install
```

if you don't:

```
# ./do install
```


## Bugs and limitations

Bugs can be reported using the [ticket tracker][issue]. See the manpage (`man
poe`) after installing **poe** for more information.


## License

sled - Simple text editor
Copyright (C) 2022 Страхиња Радић

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/][licen].

---

This program includes code from the termbox TUI library,

[https://github.com/termbox/termbox][termbox]

The file `LICENSE.termbox` applies to the portion of this program which is from
the termbox library.

{made-by}
{/main}

[issue]: https://todo.sr.ht/~strahinja/sled/
[licen]: https://www.gnu.org/licenses
[termbox]: https://github.com/termbox/termbox

A sled/sled.css => sled/sled.css +15 -0
@@ 0,0 1,15 @@
:root
{
	--text-width: 45em;
}

dd
{
	margin-left: 0;
}

dd > ul
{
	margin-top: -3em;
	margin-left: 1em;
}

D slw2gmi/index-meta.csv => slw2gmi/index-meta.csv +0 -10
@@ 1,10 0,0 @@
"Name","Content"
"og:type","website"
"og:url","%canonical%"
"og:title","%site-name%"
"og:description","%site-desc%"
"twitter:card","summary_large_image"
"twitter:url","%canonical%"
"twitter:title","%site-name%"
"twitter:creator","@strahinja_radic"
"twitter:description","%site-desc%"

A slw2gmi/index-meta.tsv => slw2gmi/index-meta.tsv +10 -0
@@ 0,0 1,10 @@
Name	Content
og:type	website
og:url	%canonical%
og:title	%site-name%
og:description	%site-desc%
twitter:card	summary_large_image
twitter:url	%canonical%
twitter:title	%site-name%
twitter:creator	@strahinja_radic
twitter:description	%site-desc%

M slw2gmi/index.slw => slw2gmi/index.slw +1 -1
@@ 3,7 3,7 @@ site-name: slw2gmi - slweb to Gemini converter
site-desc: slweb to Gemini converter
inline-stylesheet: ../index.css
canonical: https://strahinja.srht.site/slw2gmi/
meta: index-meta.csv
meta: index-meta.tsv
---
{main}
# slw2gmi

D slweb/index-meta.csv => slweb/index-meta.csv +0 -16
@@ 1,16 0,0 @@
"Name","Content"
"og:type","website"
"og:url","%canonical%"
"og:title","%site-name%"
"og:description","%site-desc%"
"og:image","%image%"
"og:image:type","image/webp"
"og:image:width","1127"
"og:image:height","492"
"og:image:alt","The text 'slweb' in lowercase italics"
"twitter:card","summary_large_image"
"twitter:url","%canonical%"
"twitter:title","%site-name%"
"twitter:creator","@strahinja_radic"
"twitter:description","%site-desc%"
"twitter:image","%image%"

A slweb/index-meta.tsv => slweb/index-meta.tsv +16 -0
@@ 0,0 1,16 @@
Name	Content
og:type	website
og:url	%canonical%
og:title	%site-name%
og:description	%site-desc%
og:image	%image%
og:image:type	image/webp
og:image:width	1127
og:image:height	492
og:image:alt	The text 'slweb' in lowercase italics
twitter:card	summary_large_image
twitter:url	%canonical%
twitter:title	%site-name%
twitter:creator	@strahinja_radic
twitter:description	%site-desc%
twitter:image	%image%

M slweb/index.slw => slweb/index.slw +1 -1
@@ 5,7 5,7 @@ inline-stylesheet: ../index.css
inline-stylesheet: slweb.css
image: https://strahinja.srht.site/slweb/logo-social.webp
canonical: https://strahinja.srht.site/slweb/
meta: index-meta.csv
meta: index-meta.tsv
---
{main}
# slweb

D table/index-meta.csv => table/index-meta.csv +0 -11
@@ 1,11 0,0 @@
"Name","Content"
"og:type","website"
"og:url","%canonical%"
"og:title","%site-name%"
"og:description","%site-desc%"
"twitter:card","summary_large_image"
"twitter:url","%canonical%"
"twitter:title","%site-name%"
"twitter:creator","@strahinja_radic"
"twitter:description","%site-desc%"
"twitter:image","%image%"

A table/index-meta.tsv => table/index-meta.tsv +11 -0
@@ 0,0 1,11 @@
Name	Content
og:type	website
og:url	%canonical%
og:title	%site-name%
og:description	%site-desc%
twitter:card	summary_large_image
twitter:url	%canonical%
twitter:title	%site-name%
twitter:creator	@strahinja_radic
twitter:description	%site-desc%
twitter:image	%image%

M table/index.slw => table/index.slw +1 -1
@@ 3,7 3,7 @@ site-name: table - Command line utility to format and display CSV
site-desc: Command line utility to format and display CSV
inline-stylesheet: ../index.css
canonical: https://strahinja.srht.site/table/
meta: index-meta.csv
meta: index-meta.tsv
---
{main}
# table

D text-tools/index-meta.csv => text-tools/index-meta.csv +0 -10
@@ 1,10 0,0 @@
"Name","Content"
"og:type","website"
"og:url","%canonical%"
"og:title","%site-name%"
"og:description","%site-desc%"
"twitter:card","summary_large_image"
"twitter:url","%canonical%"
"twitter:title","%site-name%"
"twitter:creator","@strahinja_radic"
"twitter:description","%site-desc%"

A text-tools/index-meta.tsv => text-tools/index-meta.tsv +10 -0
@@ 0,0 1,10 @@
Name	Content
og:type	website
og:url	%canonical%
og:title	%site-name%
og:description	%site-desc%
twitter:card	summary_large_image
twitter:url	%canonical%
twitter:title	%site-name%
twitter:creator	@strahinja_radic
twitter:description	%site-desc%

M text-tools/index.slw => text-tools/index.slw +1 -1
@@ 3,7 3,7 @@ site-name: text-tools - Small command line utilities
site-desc: Small command line utilities
stylesheet: ../index.css
canonical: https://strahinja.srht.site/text-tools/
meta: index-meta.csv
meta: index-meta.tsv
---
{main}
# text-tools