💾 Archived View for station.martinrue.com › ailolai › d138bad98ffc45ce938aec0f8f036ef0 captured on 2023-03-20 at 20:24:26. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

➡️ Next capture (2023-07-22)

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

👽 ailolai

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

1 year ago · 👍 dsfadsfgafgf, moddedbear, lykso, jforg, eo

Actions

👋 Join Station

3 Replies

👽 shway

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" {} \; · 1 year ago

👽 enceladus

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! · 1 year ago

👽 ailolai

To insert the link arrow just :%s/^/=>/g ^ meaning start of line and % apply this command s (substitute) to each line · 1 year ago