💾 Archived View for bbs.geminispace.org › u › halscode › 20036 captured on 2024-12-17 at 15:57:36. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Re: "Did you (@skyjake) consider implenting the "edit" Titan..."
@vi In my capsule editing script (gmEditor), I differentiated accidental size=0 deletes from intentional deletes by requiring the token set to "delete", AND the content has to be either empty or unchanged. So, if I set the token to delete a file, and then edit a different file without remembering to unset the token, it warns me that I was about to delete that file. That doesn't work if you're using tokens for their intended use-case, though...
Sep 27 · 3 months ago
@mbays That sounds like intended behavior unless it's sent via an input (after a ?). I think it behaves as part of the path in Gemini, although it does have special significance in Titan.
@halscode unfortunately I want to use tokens for their intended purpose in the future so I can set up a web -> titan interface in case I want/need to update my site from a public computer. Thanks for your suggestion though, now I can probably hack something together like starting the token with "delete" and making sure the token is numbers only or something like that.
@vi It could be possible, maybe, to have a secondary "delete" token in addition to the normal "edit" one, in that case. So one password to commit normal edits, the other to confirm dangerous actions? Along with other checks, like you have to also set the body to "delete this" or something.
Or just have the body checked for "delete this". I guess that works too.
My script abuses tokens pretty bad to accomplish what it does (it also has directory listings, renaming, etc). So it's not a case I would expect anything to accommodate.
Did you (@skyjake) consider implenting the "edit" Titan parameter? [gemini link] "edit" extension to Titan spec To summarise that proposal: a successful request "titan://example.org/example;edit" returns data for the user to edit, which is then submitted as a normal Titan request to the same path. I think this would make Titan editing much more usable. Without it, editing text is rather awkward. I don't see how to improve on how Bubble does it -- sending the user to a gemini page with the...