Spyke

Posts

lem.el update 0.20

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.

lem.el update 0.20https://codeberg.org/martianh/lem.elOpen linkView original on lemmy.ml

lem 0.19 update

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

lem 0.19 updatehttps://codeberg.org/martianh/lem.elOpen linkView original on lemmy.ml
lemmydev·Lemmy App Development byblawsybogsy

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

View original on lemmy.ml

emacs lem.el 0.8 update

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

emacs lem.el 0.8 updatehttps://codeberg.org/martianh/lem.elOpen linkView original on lemmy.ml
lemmydev·Lemmy App Development byblawsybogsy

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?

View original on lemmy.ml

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.

emacs lemmy client lem.el 0.4 updatehttps://codeberg.org/martianh/lem.elOpen linkView original on lemmy.ml

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.

lem.el - client library and interface for lemmyhttps://codeberg.org/martianh/lem.elOpen linkView original on lemmy.ml

You reached the end