How to add links to all your files in a folder in gemini. Add or edit a index.gmi Go vim :D and on command mode :r !ls
Then add the => before each one of those
2 years ago ยท ๐ dsfadsfgafgf, moddedbear, lykso, jforg, eo
Nice! Also:
ls | perl -pe 's/^/=> /g' newfile.gmi
If you whant to add only file but have munltiple directories, use find:
find . -type f -exec printf "=> %s\n" {} \; ยท 2 years ago
A variant of those commands (dropping the colon, and replacing the % with a comma) will work in every ancestor of vim right back to ed, interestingly enough. Such a powerful and timeless way of manipulating text! ยท 2 years ago
To insert the link arrow just :%s/^/=>/g ^ meaning start of line and % apply this command s (substitute) to each line ยท 2 years ago