diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2022-05-17 18:13:52 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2022-05-17 18:13:52 +0200 |
| commit | f018806b598f752c021be814de4ad641082a0ab9 (patch) | |
| tree | 04ccfab7216849d732032d38f1b9ccd372fc96b1 | |
| parent | 58f547462ec79d2cbdf713351c086a2354e9f34b (diff) | |
| download | scripts-f018806b598f752c021be814de4ad641082a0ab9.tar.gz scripts-f018806b598f752c021be814de4ad641082a0ab9.zip | |
Added gfmt
| -rw-r--r-- | Makefile | 1 | ||||
| -rw-r--r-- | TODO | 2 | ||||
| -rwxr-xr-x | gfmt | 9 |
3 files changed, 12 insertions, 0 deletions
| @@ -16,6 +16,7 @@ SCRIPTS = addressgrep \ | |||
| 16 | dmenu-websearch \ | 16 | dmenu-websearch \ |
| 17 | ffmpeg-screenrecord \ | 17 | ffmpeg-screenrecord \ |
| 18 | ffmpeg-facecam \ | 18 | ffmpeg-facecam \ |
| 19 | gfmt \ | ||
| 19 | mail-compose \ | 20 | mail-compose \ |
| 20 | notify-status \ | 21 | notify-status \ |
| 21 | open-file \ | 22 | open-file \ |
| @@ -1,3 +1,5 @@ | |||
| 1 | * gfmt: avoid double spacing within ``` | ||
| 2 | |||
| 1 | * sfeed-browser: optionally just write link to stdout (or to xsel -i) | 3 | * sfeed-browser: optionally just write link to stdout (or to xsel -i) |
| 2 | 4 | ||
| 3 | * Refactor: review all scripts and adapt to common style | 5 | * Refactor: review all scripts and adapt to common style |
| @@ -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 | ||
