diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2022-05-17 18:47:18 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2022-05-17 18:47:18 +0200 |
| commit | de2e9cd47bb9ba35e9c62894c7c6a09551640068 (patch) | |
| tree | 5fa5256b184ed427abcc04a038e5bca1ab936483 /old | |
| parent | f018806b598f752c021be814de4ad641082a0ab9 (diff) | |
| download | scripts-de2e9cd47bb9ba35e9c62894c7c6a09551640068.tar.gz scripts-de2e9cd47bb9ba35e9c62894c7c6a09551640068.zip | |
Moved to old; it was a decent attempt, but gmnlm has a better pager, only lacking scrollback
Diffstat (limited to 'old')
| -rwxr-xr-x | old/gfmt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/old/gfmt b/old/gfmt new file mode 100755 index 0000000..d38351f --- /dev/null +++ b/old/gfmt | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Format text from gemtext format to short lines with double \n | ||
| 4 | |||
| 5 | # TODO: remove double spacing from within ``` | ||
| 6 | |||
| 7 | sed 's/ //' | \ | ||
| 8 | sed 'a\\' | \ | ||
| 9 | fold -sw 80 | ||
