From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from phosphorus.danielmoch.com ([155.138.196.50]) by ewsd; Sat Nov 21 19:31:50 -0500 2020 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=dotcom; bh=s/xwp8Fgnx25g qFjAfVWLsjx+rlIxn3lGjPPUJF9CRs=; h=date:from:subject:to; d=danielmoch.com; b=fImO/RyAdVKlXblGLmZ/sxBgNu9TKgc1yZkHmnQSuMYyFb2A2V WJAJR0yBxfr6PYOoRic8VGumbUMvV9MxGnBBVBReeatwn6PNaGiu4IASt4b+wtoUsfvS5s w1w5J/XVAxGZF8CzP+a3CduttDFH3ZxPOs4emXOs6xmpN+App7lM8ZUHo4XWZYMrM56Bog 1AS0SbPaemIboAw2Re3NnYn0gUGXQK+BAQ1KDWA2Nhzt/tF42ynphRZAzKqMOkhwiA7+3k yDI4y7/9xtN5X4upPRd6hZWniCQaOkv+PFH7A8hoh+XB6dBh7Rb04GVcY47QyjAZHrRqI3 Eef6WDdXDw1Q== Received: from ranger.org ( [192.168.101.14]) by phosphorus.danielmoch.com (OpenSMTPD) with ESMTPSA id f1cb45c1 (TLSv1.2:ECDHE-RSA-AES256-SHA:256:NO) for <9front@9front.org>; Sat, 21 Nov 2020 19:31:43 -0500 (EST) Message-ID: To: 9front@9front.org Subject: [~orib/Nail PATCH] Add thread links to bottom of message From: Daniel Moch Date: Sat, 21 Nov 2020 19:30:56 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: shared app general-purpose-based standard framework-oriented base markup-oriented framework This usability patch places thread links at the bottom of displayed messages in addition to the beginning to allow for easier thread navigation. diff -urN a/mesg.c b/mesg.c --- a/mesg.c Sat Nov 21 14:21:15 2020 +++ b/mesg.c Sat Nov 21 19:19:21 2020 @@ -262,6 +262,15 @@ } home = getenv("home"); + if(m->parent != nil || m->nchild != 0) { + Bprint(wfd, "\n"); + Bprint(wfd, "===> Thread:"); + if(m->parent && !(m->parent->state & Sdummy)) + Bprint(wfd, " ↑ %s", m->parent->name); + for(i = 0; i < m->nchild; i++) + Bprint(wfd, " ↓ %s", m->child[i]->name); + Bprint(wfd, "\n"); + } if(m->nparts != 0) Bprint(wfd, "\n"); for(i = 0; i < m->nparts; i++){ -- Daniel Moch https://djmo.ch