Glider icon indicating copy to clipboard operation
Glider copied to clipboard

Feature Request: show parent comment

Open azizLIGHT opened this issue 3 years ago • 1 comments

Deep in a comment chain, it can sometimes get difficult to keep track of who replied to who and about what. For threads with multiple lengthy replies, at the same tree depth, and of a technical and wordy nature, being able to see the parent comment without scrolling up would be convenient. It could prevent scrolling up to reread the parent comments and scrolling back down to find the comment you were on.

Here's an example on a reddit client with a short comment tree to illustrate this feature: Screenshot_20220127-034501

Hitting the up arrow could show the n-1 parent in successive steps upto the GP like this: Screenshot_20220127-034852 Each successive press leads to the n-1 parent of the shown comment: Screenshot_20220127-034930 Screenshot_20220127-035844 Until the final parent is shown (Comments at sibling depth are skipped since they are not direct parents, and unrelated) Screenshot_20220127-035852

Or it could show them all at once. The order could be reversed if it makes sense. Screenshot_20220127-034542

This is with a simple example, so it would shine in a complicated thread with many replies in a specific depth and the parents are harder to find and keep track of when manually scrolling up/down

It could be optional by explicitly needing a setting to enable it so that it doesn't clutter the UI: Screenshot_20220127-035031

There's a natural spot for an 'up button' in each comment's context menu next to the upvote, reply, favorite, flag, share buttons. I think the feature from the reddit client translates well into HN, but I'm not sure of the implementation and options and code. In any case, these were some ideas, and I hope you consider this feature in whatever implementation that makes sense for Glider and HN. Thank you.

azizLIGHT avatar Jan 27 '22 09:01 azizLIGHT

I like it. I've experienced the same difficulty following a long discussion, and this seems like an elegant solution.

Mosc avatar Jan 30 '22 19:01 Mosc

Implemented in da3b4b6ce7cf8bd328ea3f8c1dd45f1bfe01eba6 and should be part of the next release. I've chosen the option where one parent is shown in the dialog and the user can manually continue navigating to earlier ancestors, I found displaying the entire thread in a dialog at once to be an overload of information, probably because Hacker News comments are typically longer than Reddit comments, which in many cases necessitated a significant amount of scrolling.

Mosc avatar Aug 30 '22 19:08 Mosc