💾 Archived View for bbs.geminispace.org › u › mbays › 18570 captured on 2024-12-17 at 15:57:35. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-08-31)

🚧 View Differences

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

Comment by 🚀 mbays

Re: "Did you (@skyjake) consider implenting the "edit" Titan..."

In: s/Lagrange

@skyjake Thanks, that's good to hear. By the way, I noticed a bug in Lagrange: semicolons in the gemini url aren't percent-escaped when producing the titan url, so uploading from gemini://example.com/;size=5 results in a titan url with two size parameters, which is presumably intended to be invalid (though the spec doesn't explicitly say so).

🚀 mbays [OP]

Jul 14 · 5 months ago

4 Later Comments ↓

🚲 halscode · Sep 27 at 19:46:

@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...

🚲 halscode · Sep 27 at 19:48:

@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.

☀️ vi · Sep 27 at 21:13:

@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.

🚲 halscode · Sep 28 at 03:39:

@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.

Original Post

🌒 s/Lagrange

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...

💬 mbays · 9 comments · 2 likes · Jul 13 · 5 months ago