Problem with new 'pager_format'
In mutt-1.5.15, and all prior versions that I know of, the pager status line included a "percentage of the message shown" indicator on the far right. The rest of the status line was always truncated so that that indicator was always visible. With mutt-1.5.16, that behavior has changed. The fixed indicator has been replaced by the "%> -- (%P)" format sequence in 'pager_format'. The problem with this is that the percentage indicator can now be shoved off the right side of the screen by long subjects. Is there a 'pager_format' that will restore the previous behavior, that is, keep this indicator fixed at the right end of the status line while allowing the rest of the status string to "breath" and the screen width to vary? Gary
Re: Problem with new 'pager_format'
On Wed, Jun 27, 2007 at 05:20:53PM -0700, Gary Johnson wrote: > Is there a 'pager_format' that will restore the previous behavior, > that is, keep this indicator fixed at the right end of the status > line while allowing the rest of the status string to "breath" and > the screen width to vary? The only workaround I can think of is to change $pager_format to include a maximum width for the subject line based upon the usual terminal width of the screen you use. For example, to cut off a subject after 20 characters: set pager_format="-%Z- %C/%m: %-20.20n %.20s%> -- (%P)" ^^^ me
Re: Problem with new 'pager_format'
* On 2007.06.27, in <[EMAIL PROTECTED]>, * "Gary Johnson" <[EMAIL PROTECTED]> wrote: > > With mutt-1.5.16, that behavior has changed. The fixed indicator > has been replaced by the "%> -- (%P)" format sequence in > 'pager_format'. The problem with this is that the percentage > indicator can now be shoved off the right side of the screen by long > subjects. It's not exactly the answer you're looking for, but this is precisely the kind of scenario my "softfill" patch is made to address. This patch implements the "%* " notation, which is analogous to "%> " but gives precedence to the right side instead of to the left when the fill length is zero. With a long subject, the subject would be truncated enough for anything to the right of "%* " to render in full. http://home.uchicago.edu/~dgc/sw/mutt/patch-1.5.16.dgc.softfill.1 -- -D.[EMAIL PROTECTED]NSITUniversity of Chicago
Re: Problem with new 'pager_format'
On june 27th 2007, 09:34:04, Michael Elkins wrote : > set pager_format="-%Z- %C/%m: %-20.20n %.20s%> -- (%P)" i think you can do better with something like this in xterm : set pager_format="-%Zz %C/%m: %-20.20n %.`echo $[$COLUMNS - 40]`s%> -- (%P)" -- Maxime Brugidou
Re: Problem with new 'pager_format'
I'm sorry I've taken so long to get back to this. It was an especially busy day of real work. On 2007-06-28, David Champion <[EMAIL PROTECTED]> wrote: > * On 2007.06.27, in <[EMAIL PROTECTED]>, > * "Gary Johnson" <[EMAIL PROTECTED]> wrote: > > > > With mutt-1.5.16, that behavior has changed. The fixed indicator > > has been replaced by the "%> -- (%P)" format sequence in > > 'pager_format'. The problem with this is that the percentage > > indicator can now be shoved off the right side of the screen by long > > subjects. > > It's not exactly the answer you're looking for, but this is precisely > the kind of scenario my "softfill" patch is made to address. This patch > implements the "%* " notation, which is analogous to "%> " but gives > precedence to the right side instead of to the left when the fill length > is zero. With a long subject, the subject would be truncated enough for > anything to the right of "%* " to render in full. > > http://home.uchicago.edu/~dgc/sw/mutt/patch-1.5.16.dgc.softfill.1 This appears to be the best solution I've seen. However, when I point my browser to that URL, it reports Forbidden You don't have permission to access /~dgc/sw/mutt/patch-1.5.16.dgc.softfill.1 on this server. Apache/1.3.27 Server at home.uchicago.edu Port 80 Would you please take a look at the permissions on that file? I commonly run mutt in three different terminal widths, so Maxime's proposal is also a possibility, but I would have to change the behavior of the 'pager_format' I had been using, which was set pager_format="%4C %Z %[!%b %e at %I:%M %p] %.20n %s" Note that both the name and subject fields have varying widths. I would have to make them both fixed and lose the ability to exchange name width for subject width. Thank you all for your help. Regards, Gary
Re: Problem with new 'pager_format'
* On 2007.06.29, in <[EMAIL PROTECTED]>, * "Gary Johnson" <[EMAIL PROTECTED]> wrote: > I'm sorry I've taken so long to get back to this. It was an > especially busy day of real work. Understood. :) >You don't have permission to access > /~dgc/sw/mutt/patch-1.5.16.dgc.softfill.1 on this server. You know, I actually checked permission before posting, and in retrospect I clearly recall seeing 600 and thinking "well, that's all right." Too many things on my mind, I guess. This is fixed; sorry for the trouble. Silly umask. Just as a side note, I've used this for 3-4 years in $index_format, to fit my X-Labels to the right edge of the screen regardless of the subject's content/length. It's pretty useful. The patch includes some extended doc on format strings, too. Mostly this covers printf formatter semantics, which are neglected in the manual currently. In light of the situation with 1.5.16's $pager_format, is it time to review adding this code to hg tip? -- -D.[EMAIL PROTECTED]NSITUniversity of Chicago
Re: Problem with new 'pager_format'
On 2007-06-29, David Champion <[EMAIL PROTECTED]> wrote: > * On 2007.06.29, in <[EMAIL PROTECTED]>, > * "Gary Johnson" <[EMAIL PROTECTED]> wrote: > >You don't have permission to access > > /~dgc/sw/mutt/patch-1.5.16.dgc.softfill.1 on this server. > > You know, I actually checked permission before posting, and in > retrospect I clearly recall seeing 600 and thinking "well, that's all > right." Too many things on my mind, I guess. This is fixed; sorry for > the trouble. Silly umask. Not a big deal. Thanks for the quick reply. The patch works very nicely! Thank you! > In light of the situation with 1.5.16's $pager_format, is it time > to review adding this code to hg tip? Sounds good to me. Regards, Gary
Re: Problem with new 'pager_format'
Hi David, On Friday, June 29, 2007 at 0:22:55 -0500, David Champion wrote: > adding this [dgc.softfill.1] code to hg tip? I happily use your softfill patch since a long time, in the past posted here some examples of usage cases requiring it, and vote 107% for inclusion. Thank you for your work, Dave! :-) Bye!Alain. -- Give your computer's unused idle processor cycles to a scientific goal: The [EMAIL PROTECTED] project at http://folding.stanford.edu/>.
Re: Problem with new 'pager_format'
On 29Jun2007 11:56, Alain Bench <[EMAIL PROTECTED]> wrote: | On Friday, June 29, 2007 at 0:22:55 -0500, David Champion wrote: | > adding this [dgc.softfill.1] code to hg tip? | I happily use your softfill patch since a long time, in the past | posted here some examples of usage cases requiring it, and vote 107% for | inclusion. Thank you for your work, Dave! :-) And I have just started. I'm very happy with my X-Label and meessage side over to the right using the %* syntax. -- Cameron Simpson <[EMAIL PROTECTED]> DoD#743 http://www.cskk.ezoshosting.com/cs/ When passenger of foot heave in sight, tootle the horn. Trumpet him melodiously at first, but if he still obstacles your passage, tootle him with vigor. - From a brochure of a car rental firm in Tokyo
Re: Problem with new 'pager_format'
On Friday, 29 June 2007 at 00:22, David Champion wrote: > * On 2007.06.29, in <[EMAIL PROTECTED]>, > * "Gary Johnson" <[EMAIL PROTECTED]> wrote: > > I'm sorry I've taken so long to get back to this. It was an > > especially busy day of real work. > > Just as a side note, I've used this for 3-4 years in $index_format, > to fit my X-Labels to the right edge of the screen regardless of the > subject's content/length. It's pretty useful. The patch includes > some extended doc on format strings, too. Mostly this covers printf > formatter semantics, which are neglected in the manual currently. > > In light of the situation with 1.5.16's $pager_format, is it time > to review adding this code to hg tip? Given the new %P option, I think we might consider this a bug fix for the purposes of the current feature chill. It's in tip now. pgp3mrD1nspwy.pgp Description: PGP signature