Embed Notice
HTML Code
Corresponding Notice
- Embed this notice@mia There's this "state" object that gets passed around and I wanted to start exploiting it. All it is used for at the moment is current user, but there are two things I wanted to try shoving in there: one is using "." (like edsamacme, nedmail, etc.) to represent the most recently interacted-with ID (so wherever an ID was used, you could use ".", which would be updated automatically, making "," more useful; I think I noted something about this when I announced ","), and the other was using it to keep track of a rotating list of IDs so that I could type two digits instead of pasting a long-ass base-36'd flake ID. (The same way Pleroma/bloat/styxbot ephemerally number posts.) There are a lot of places to take the .-context, like maybe "." is a stack (like how dc works) or a ring buffer so that "<" goes back and ">" goes forward, so you could navigate a thread. Maybe have it display replies, too. Helene did some hacking on it before it was removed and had it display threads but I like the navigation model more than the display model. Then there's also stuff like finding users and displaying their posts/bios, or making replies tag the other people in the thread, or marking notifications as read. (Notifications could be done a little more intelligently by displaying the oldest unread ones and then using the state object to keep track of the last one displayed so that you could page through them or clear up to the highest ID from the most recently displayed page.) Line continuations for multi-paragraph posts, easier than it sounds because the pattern-matching lets you match on the state object, too.
I don't know why, but I have gotten kinda fascinated with the text interface to fedi. I started playing with it so that I could interact using the RISC-V machine because the Rockchip one is busy compiling a new CRUX and the RISC-V one runs Slackware so I've kinda been living on the RISC-V DevTerm and it's been delightful with the exception that all current-year browsers are clunky on a machine that is more powerful than my desktop system was when Firefox was first released. So I did the minimum required to make it talk to fedi properly and then I keep wanting to hack on it more.