💾 Archived View for rawtext.club › ~sloum › geminilist › 002078.gmi captured on 2020-09-24 at 01:27:00. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Hannu Hartikainen hannu.hartikainen+gemini at gmail.com
Sun Jul 5 23:49:55 BST 2020
- - - - - - - - - - - - - - - - - - -
Hi!
I'm announcing my first proper piece of Gemini software: twinwiki!
The general idea is that a single line of input[1] works for very few textediting interfaces, yet most of us know one: sed. Mostly people use a verysmall subset of sed. Here I've implemented a slightly larger subset and Ifeel you could actually edit pages quite well if the browser showed linenumbers.
To get a feel, please try out this test instance:gemini://hannuhartikainen.fi/twinwiki
Feel free to create new pages and edit the existing ones. All page changescan be reverted. Pages cannot be deleted. I.e. if you're able to breaksomething, it's my fault.
The basic wiki features exist: you can edit, create pages, view history,see an index of pages and read help.
Some caveats:- Navigating back to a /_edit?<sed_command> URL will redo the edit, whichis mostly not what you tried to do. This will probably be an issue on manygemini applications; browsers will need to consider it if applicationsbecome a thing.- The sed syntax is not fully POSIX even for the implemented parts:whitespace after commands is taken literally; regex syntax is the one fromthe Rust regex crate.
The project page (git repo, mailing lists, ticket tracker) is athttps://sr.ht/~dancek/twinwiki/
Any comments, contributions etc. are welcome. I hope this will give otherpeople other ideas about possible user interfaces.
-Hannu
[1] A sed command containing newlines will probably work, too, as long asit's percent-encoded properly (ie. \n = %0A). However, the Gemini specsuggests that the input should not contain newlines: "The requestedresource accepts a line of textual user input." Is it a bad sin to sendmultiple lines?-------------- next part --------------An HTML attachment was scrubbed...URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20200706/b713b8ec/attachment.htm>