

Author of lem.el, a lemmy client for emacs: https://codeberg.org/martianh/lem.el
i thought it was a troll but it's real?
looks like a lacrosse stick, or a crutch maybe?
Permanently Deleted
i have a rooted android (running calyx) and it just works and its great. i never fuck around with it at all, whether due to necessity or ricing desires.
presumably the idea is just to use/interact with the device on one's own terms, rather than being harrassed by it into engagement?
i do both, but they're different things.
lem.el 0.22 update
this update
the readme is also updated to explain these features.
holler if you run into any bugs.
i'm so high i can see hotdogs grooving, smirking, and winking at me.
lem.el update 0.20
added lots of stuff in this update, some of which may be a little green still.
one thing to note is that this release switches the S/s bindings, for consistency.
maybe it can't be done? I think Jerboa doesn't implement, but i thought the web UI did...
lem 0.19 update
I thought it might be nice to add drop-down sort/listing widgets to the top of all feed-based views, roughly similar to the web client, but it seems that the emacs widget library doesn't allow placing multiple menu widgets on the same line. :/
EDIT: turns out it's possible, so i'll add them to the main views.
Lemmy API Swagger documentation
There's now a swagger documentation for the Lemmy API.
how do you construct a user overview while respecting sort?
I just implemented a user overview of mixed posts and comments, but I'm unsure how to do so while respecting sort (hot, new, old, etc.). Currently I merge the user's comments and posts into a list, then sort them all by timestamp.
Because sorting is handled on the server, and merging posts/comments happens after, I can't see how I can't respect sort and still merge the two sets. Does anyone have any pointers?
I expect a similar issue would arise for the unified inbox view also (replies, mentions, and private messages), although in that case there's less need to sort by anything other than recency.
EDIT: here's the relevant ts code in the official lemmy ui. it sorts by date if sort is new, which i already do, then otherwise it just sorts by "score".
lem.el 0.16 update
additions:
lem.el 0.12 - optional encrypted auth tokens
I recently updated lem.el to 0.12.
The release makes encrypted tokens optional for easier use. If you update and find you can't load lem.el, delete ~/.emacs.d/lem.plstore
and log in again. If you want your auth tokens to be encrypted, set lem-encrypt-auth-tokens
to non-nil. You'll also need to set plstore-encrypt-to
to a GPG key of yours.
Mito tutorial, an ORM for Common Lisp
In this post, we are going to take a look at Mito, the ORM library for Common Lisp and walk through...
Mito docs are pretty scarce, here's a helpful tutorial for getting a nice cruddy CRUD going.
lisp webdev tutorial part 2
"We create a search form, display products with ready-to-use HTML templates, organize our Djula templates with inheritance. Common pitfalls. That's the basics every web developer should know!"
https://www.youtube.com/watch?v=EFRVHmOCE7Q
By Vindarel, of CL cookbook fame.
it'd be helpful to post to sth like masto yeah, as its much more public facing than matrix.
you could take ask on the repo or ask the dev, they're obvs active on the fediverse. (poss relevant: https://github.com/superseriousbusiness/gotosocial/issues/1468.)
emacs lemmy client lem.el 0.9 update
updated lem.el lemmy client for emacs.
is it not possible to just search in the code of spacemacs if you know it can do it? seems like your best bet. if you can't find it searching, ask on the repo? otherwise, as others have said, i wouldn't think it's a simple thing to achieve. best to see if you can reuse the work others have already done.
emacs lem.el 0.8 update
did some more hacking on lem.el. 0.8 release includes:
there's still lots to fix up, but its running pretty well now.
& hm i wonder is there any other overlap btw emacsers + the lemmy codebase? i'm just adding features as i work out how things work, often in an amateur ad-hoc manner...
blocking instances for users was added in 0.19. it works like community block: you don't see any posts from an instance, but you can see the activity of users from that instance on any other instances where they do stuff.
https://github.com/LemmyNet/lemmy/pull/3869
[this is not an endorsement of federating with any meta product. i believe in deplatforming hostile actors, which they've well and truly proven themselves to be.]
no one else is having issues with this?
Show Lemmy: I hacked together a website showing the Lemmy, Mastodon, etc instances that block Zuckerberg's Threads.net
i read the page title, then looked at first result and it was mastodon.social and second was mstdn.social.
mayb for your site to match its title you want to not make "federated" the default status sort option?
i also fixed authentication for the 0.19 release, but when your instance actually upgrades (lemmy.ml already has, for testing), it will require you to delete the lem.plstore file in .emacs.d/ and log in again with your password.
& by all means holler if you run into authentication issues during the transition.
ensure child comments are displayed in post view?
currently my client displays child comments/replies to a given comment based on a get-comments request and the sort arg. if a child comment is returned by such a request, it will be included as part of the tree, but otherwise not. it means the child is subject to sorting itself.
but what is needed is that if a parent comment is displayed/returned by request/sort arg, all its children should be also. that seems to me to be how the webUI works also.
any tips on how to ensure that?
emacs lemmy client lem.el 0.4 update
did a maniac hack on the old lem.el recently, mainly for the 0.19 release. overhauled the logic of all the sorting/listing commands. they should be more rigorous and flexible to update now. various other fixes too. pushed to main, so will hit MELPA soon.
also added unified inbox for replies, mentions, and private messages, and various other minor display improvements.
EDIT: all good, I worked it out, I found some other api docs.
Is the ModeratorView listing type in this release? If so what feed view is it available in? I can't see it in the lemmy.ml webUI at the moment, nor in the API docs, but the code is merged.
(or a b)
i never thought of lisp as concise before
understatement of the year
ah its back up now, thanks.
i was going to test these new changes out for my client, but it seems that https://voyager.lemmy.ml is down?
cool bananas.
lem.el - client library and interface for lemmy
A client library and UI for Lemmy, has most of the basics in working order now. interested to hear your feedback if you give it a go. other complex UI features like rich post composing and image handling will be ported from mastodon.el.
it is designed to have a clean API layer, so the functions in lem-api.el could be used to create other interfaces.
documentation for lemmy link types?
Is there anywhere that lemmy's various types of internal links are documented? like !community links @user links, links of the form https://lemmy.com/c/[email protected]. i have also seen links that just have "/c/[email protected]"... at the moment i'm only developing rendering code for them as i happen upon them, which is ad-hoc
how does the webfinger API work?
Or is it documented? with mastodon, i set up clients to always load URLs in my app if they resembled masto-compatible URLS. I'm unsure how to go about this with lemmy. the lemmy-js-client "documentation" makes no mention of webfinger at all, though the lemmy repos have PRs fixing it.
are maximum Limit values documented somewhere?
The Limit property is just a number, but it is different for different API endpoints. I'd like to have a list of the different values so i can easily stay within the max for each endpoint. Are the values documented somewhere? From the official js-client docs site, not even a given endpoint documents its maximum.
how to build a comment tree from the lemmy API?
i have requests to fetch comment and post data, but i'm struggling to work out how to build a tree from the responses? do i fetch comments with arg parent_id to get a comment's children, and do so recursively for those comments returned that themselves have comments?