LunaticHacker / lemmy-terminal-viewer

a terminal user interface for lemmy
GNU Affero General Public License v3.0
32 stars 2 forks source link

Show comments in tree form #5

Open dessalines opened 3 years ago

dessalines commented 3 years ago

Here's the code I'm using in lemmy-ui to build the hierarchical comment trees. This is necessary because the lemmy server returns comments flat, and its up to clients to build the full trees from the comment parent_ids (currently at least).

LTV looks great BTW!

LunaticHacker commented 3 years ago

Do you mean a tree like ui? we already convert the flat list to a tree, I thought it was much cleaner to give each nesting level a separate screen especially in small terminal screens.

dessalines commented 3 years ago

Should be fine even on skinny terms, here's tuir:

image

LunaticHacker commented 3 years ago

I checked out tuir, tbh i prefer the current layout, we can do this if more people prefer this. in the meantime i will focus on some other improvements and features