retronews

a featureful fork of the luke8086/retronews hn+lobste.rs tui
Log | Files | Refs | README | LICENSE

commit b5d6223f8b3350a0d32f82325aef29b026ea9e2d
parent 4d87c2dde87223e06874f213fb078253ca282619
Author: luke8086 <55237178+luke8086@users.noreply.github.com>
Date:   Wed, 27 Jul 2022 20:56:00 +0000

Don't hide titles of starred messages

Diffstat:
Mretronews.py | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/retronews.py b/retronews.py @@ -580,8 +580,10 @@ def app_render_index_row(app: AppState, row: int, message: Message) -> None: cols = app.layout.cols date = message.date.strftime("%Y-%m-%d %H:%M") author = message.author[:10].ljust(10) + is_response = message.title.startswith("Re:") and message.msg_id != message.thread_id - title = "" if is_response and row > app.layout.index_start else message.title + hide_title = is_response and row > app.layout.index_start and not message.flags.starred + title = "" if hide_title else message.title unread = ( str(max(min(message.total_comments - message.read_comments, 9999), 0)).rjust(4)