ement.el icon indicating copy to clipboard operation
ement.el copied to clipboard

[feature request] Have unread entries preceded by some context

Open ericsfraga opened this issue 3 years ago • 2 comments

When I enter a room with unread items, it would be nice to have a little context from previous read items in that room, e.g. the last few lines (maybe using the value of next-screen-context-lines, say).

Further, on a high resolution display, the line indicating where new unread items start, which is the top line of pixels in the window, is not really visible. Having it clearly visible would provide a useful visual cue as to when ement has found all unread items, avoiding trying to scroll prematurely.

Thank you!

ericsfraga avatar Oct 07 '22 16:10 ericsfraga

Hi Eric,

When I enter a room with unread items, it would be nice to have a little context from previous read items in that room, e.g. the last few lines (maybe using the value of next-screen-context-lines, say).

IIUC you're suggesting that we automatically load older events when opening a buffer for a room that has unread events. That's an interesting idea, but I'm not sure if it would be a good default, for a few reasons. For one, the number of unread events could be large, and retrieving them could take significant time and a number of requests. So any such feature would have to be carefully designed with limits to avoid loading an excessive number of old events.

Are you familiar with the command ement-room-goto-fully-read-marker, bound to M-RET? It automatically loads old events up to the fully-read marker, in batches of 100, up to a limit of 1,000. So if you enter a room and want to go back to where your fully-read marker is, you can use that command.

Further, on a high resolution display, the line indicating where new unread items start, which is the top line of pixels in the window, is not really visible. Having it clearly visible would provide a useful visual cue as to when ement has found all unread items, avoiding trying to scroll prematurely.

I understand. Do you have any suggestions for how to improve the display of that marker?

alphapapa avatar Oct 07 '22 20:10 alphapapa

I guess what I was thinking is that it would be nice to load maybe just 1 or another small number of the previous read events, just to have some context. Regarding the marker, maybe making it have some empty space above and below the line so that it is actually clearly visible when at the top of the window? I guess I can customise the face myself if it has its own face?

ericsfraga avatar Oct 08 '22 17:10 ericsfraga