💾 Archived View for rawtext.club › ~sloum › geminilist › 007059.gmi captured on 2024-03-21 at 16:05:34. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-11-30)

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

<-- back to the mailing list

Re: [Tool Discussion][Not a Programmer] Idea i'm not sure if has been done for gemtext editing

Matthew Graybosch contact at starbreaker.org

Tue Aug 31 20:35:14 BST 2021

- - - - - - - - - - - - - - - - - - - 

On Tue, Aug 31, 2021, at 2:47 PM, Andrew Singleton wrote:

Idea I have for a tool that might be useful might not:
Concept is you feed it your top level directory.
It lists all your subdirectories in that and lets you hit a button and
it goes through EVERY file and if it's an index.gmi it puts at the
foot of the file links to any directory's index.gmi above it with the
directory name (listing top level domain as Home.)

I bet somebody could implement this as a shell script. Traversing the directory tree could be handled with the following commands, where $CAPSULE is the top-level directory.

to get index.gmi files: find ${CAPSULE} -type f -name 'index.gmi'to get other gemtext files while excluding index.gmi: find ${CAPSULE} -type f -name '*.gmi' ! -name 'index.gmi'

If you want to make this a GUI app, that would be more complicated. Dunno if a beginner could manage it; but I haven't been one in over 20 years so maybe?

-- Matthew Grayboschgemini://starbreaker.org"The lies you tell yourself are the lies that define you."#include <disclaimer.h>