💾 Archived View for lonelysilo.ca › gemthought › 22.gmi captured on 2021-12-17 at 13:26:06. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
What if we replaced the idea of the URI for gemini and treated the
address bar as more of a command to be executed and output rendered
to the body of the page based on the file extension. Here's a typical
example of a gemini command:
gemini lonelysilo.ca:/index.gmi
The [gemini] command already exists as a command-line program that
produces an output of the contents of that remote file and the
exit code instructs the browser if it succeeded or not. It also
produces a gemini status code on stderr that the browser can parse
and act on it depending on the status code, even showing the meta
to the user in certain circumstances.
https://github.com/sirnewton01/ssh-capsules/tree/main/cmd/gemini
But then, the really interesting thing is that you could put other
command-line commands into the address bar and the browser can
show them in the body also, interpreting their exit codes and showing
stderr if it's present to the user. Maybe someday, those commands
might even produce gemini statuses to help when using a browser.
The Gemini browser becomes a special purpose command-line tool execution
environment with a rendering engine.