Discussion:
layout hack: blank 2nd line
Claus Assmann
2017-10-06 11:41:34 UTC
Permalink
I hacked an old mutt version to have a blank line between
the status (on top) and the list of mails, e.g., it looks
like this:

Mbox: =admin (-) [[rest of status line]]

214 2016 Mar 01 Charlie Root ( 33) esmtp.org daily insecurity output
215 2016 Mar 01 Cron Daemon ( 21) Cron <root> mailq


How to get that blank line between the status and the rest in new
mutt versions? My hack doesn't apply anymore when the code was
changed for the sidebar stuff :-(

Is there an option/trick or does it require a source code change?
In the latter case: does someone have a patch? I tried but so
far failed to hack the new code :-(
Kevin J. McCarthy
2017-10-08 11:11:05 UTC
Permalink
Post by Claus Assmann
I hacked an old mutt version to have a blank line between
the status (on top) and the list of mails, e.g., it looks
Mbox: =admin (-) [[rest of status line]]
214 2016 Mar 01 Charlie Root ( 33) esmtp.org daily insecurity output
215 2016 Mar 01 Cron Daemon ( 21) Cron <root> mailq
How to get that blank line between the status and the rest in new
mutt versions? My hack doesn't apply anymore when the code was
changed for the sidebar stuff :-(
Is there an option/trick or does it require a source code change?
In the latter case: does someone have a patch? I tried but so
far failed to hack the new code :-(
You could try the following patch. Unfortunately, it will affect other
screens besides the index. I can't remember off the top of my head if
any places make assumptions that the status has one row, but a very
quick check seemed to be okay.
--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
Kevin J. McCarthy
2017-10-08 11:39:55 UTC
Permalink
Post by Kevin J. McCarthy
You could try the following patch. Unfortunately, it will affect other
screens besides the index. I can't remember off the top of my head if
any places make assumptions that the status has one row, but a very
quick check seemed to be okay.
Sorry, that wasn't quite right. The help and message windows get
affected, so their rows needs to be reset. Hopefully this version is
something closer to working.
--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
Claus Assmann
2017-10-09 11:02:27 UTC
Permalink
Thanks for the patch, your approach is so much simpler than what I
tried so far.
In some basic testing it does what I want -- I also added a blank
line near the bottom (and now I have to figure out that hg stuff to
maintain a branch(?)/clone(?) of the original code plus some local
changes).

Loading...