Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)BL
blawsybogsy @lemmy.ml

Author of lem.el, a lemmy client for emacs: https://codeberg.org/martianh/lem.el

Posts 23
Comments 65

lem.el 0.22 update

codeberg.org lem.el

emacs client library and interface for Lemmy instances.

lem.el

this update

  • uses dropdown menu widgets everywhere, and
  • fully implements comment folding widgets.

the readme is also updated to explain these features.

holler if you run into any bugs.

0

lem.el update 0.20

codeberg.org lem.el

emacs client library and interface for Lemmy instances.

lem.el

added lots of stuff in this update, some of which may be a little green still.

  • commands to navigate comment trees
    • up to top-level comment
    • prev/next same-level comment
  • various commands to selectively fold (hide) comment branches
    • un/fold current comment
    • un/fold current comment + its children
    • un/fold current comment's entire branch
    • un/fold entire buffer
  • added more sorting/listing drop-down widgets to make it easier to see what sorting is in effect (and to change sorting by mouse)
  • fix tab navigation to (hopefully) all links everywhere
  • make default sorting/listing in views better match the web UI
  • fix sorting options in user view
  • various other fixes

one thing to note is that this release switches the S/s bindings, for consistency.

0

lem 0.19 update

codeberg.org lem.el

emacs client library and interface for Lemmy instances.

lem.el
  • implement overview (mixed comments + posts) for user views
  • implement unified inbox (mixed replies, mentions, private messages)
  • add communities moderated to user view
  • add sort/listing widgets to browse communities for nice sorting feedback
  • add search current user command
  • add search current community command

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.

0

Lemmy API Swagger documentation

There's now a swagger documentation for the Lemmy API.

See also https://mv-gh.github.io/lemmy_openapi_spec/

0

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

https://github.com/LemmyNet/lemmy-ui/blob/79ed5903354067636f5eb9686ff0a005117bc541/src/shared/components/person/person-details.tsx#L245

1

lem.el 0.16 update

additions:

  • pagination for inbox views (replies, mentions, pms)
  • create communities (basic, no images yet)
  • delete communities (completing)
  • fix view-user-at-point
  • display community's restricted/nsfw status
  • fix next/prev on user search results
1

lem.el 0.12 - optional encrypted auth tokens

codeberg.org lem.el

emacs client library and interface for Lemmy instances.

lem.el

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.

0

Mito tutorial, an ORM for Common Lisp

dev.to Mito: 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: An ORM for Common Lisp

Mito docs are pretty scarce, here's a helpful tutorial for getting a nice cruddy CRUD going.

0

lisp webdev tutorial part 2

iv.melmac.space Common Lisp web dev tutorial: how to build a web app in Lisp · part 2

✅ In this part 2 we build a search form, we organize our templates with inheritance and we render our list of products. We use another Bulma CSS nice looking skeleton. ❪ ❫ In the next one we'll see how to run the app from the terminal and then how to build a self-contained binary, including static...

Common Lisp web dev tutorial: how to build a web app in Lisp · 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.

0

Common Lisp and HTMX (video)

iv.melmac.space HTMX with Common Lisp from examples pt. 1

Implement in CL some examples from htmx.org documentation (Click To Edit and Bulk Update)

HTMX with Common Lisp from examples pt. 1
0

emacs lemmy client lem.el 0.9 update

codeberg.org lem.el

emacs client library and interface for Lemmy instances.

lem.el

updated lem.el lemmy client for emacs.

  • added an action/response/update display system for direct feedback upon executing an action (feature, save, delete, like, create, edit item).
  • added a completing-read system
  • added un/block instances, communities, and users functions.
  • various other fixes.
0
Question, How to remove all the default emacs shortcuts
  • 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

    codeberg.org lem.el

    emacs client library and interface for Lemmy instances.

    lem.el

    did some more hacking on lem.el. 0.8 release includes:

    • rich editing of posts/comments
    • rainbow bar indentation for comment trees
    • tabulated list for communities overview
    • fixes to comment trees and many other things.

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

    2
    Lemmy.world Should Defederate with Threads
  • 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.]

  • emacs lemmy client lem.el 0.4 update
  • 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?

    2

    emacs lemmy client lem.el 0.4 update

    codeberg.org lem.el

    emacs client library and interface for Lemmy instances.

    lem.el

    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.

    3
    Lemmy.ml `v0.19` upgrade issues and downtime.
  • 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.

  • lem.el - client library and interface for lemmy

    codeberg.org lem

    emacs client library and interface for Lemmy instances.

    lem

    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.

    6

    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

    4

    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.

    2

    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.

    8

    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?

    12