Re: [PATCH] new fmtpipe updates
Does status_format get evaluated every time the viewing window changes? I was
hoping to use it with this pushed fmtpipe patch to get the xtitle functionality
I use to see the number of new messages in the status bar.
But when I set status_format thus:
set status_format="/home/ckillian/hg/mutt/contrib/mutt_xtitle 'Mutt (%n/%m%?b?
Inc: %b?): %f [Summary:%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p?
Post:%p?%?l? %l?]' |"
Scrolling the index becomes very slow. (This is with menu_scroll set and
menu_context=5).
Thanks
--Chip
On Wed, Mar 14, 2007 at 02:08:00PM -0700, Brendan Cully wrote:
> On Wednesday, 14 March 2007 at 01:33, David Champion wrote:
> > * On 2007.03.13, in <20070313210222.GB24389@xxxxxxxxxxxxxxxxx>,
> > * "Brendan Cully" <brendan@xxxxxxxxxx> wrote:
> > >
> > > On further reflection, I think your fmtpipe.3 patch should work well
> > > enough -- people will just have to get used to putting their string in
> > > extra quoting. But the one you submitted seems to have some garbage in
> > > it ('/tmp/ass', and an #if 0 block), and doesn't really quote things
> > > properly for shell (embedded single quotes would break it). Can you
> > > clean these things up, and maybe add the \| check?
> >
> > These are fixed in fmtpipe.4, attached.
>
> I've pushed this version, thanks!
>
> > I've also added a mutt_xtitle program in mutt_xtitle.c, with hooks into
> > Makefile.am. It's sufficient for a common case of setting xterm titles,
> > e.g.:
> >
> > set pager_format="mutt_xtitle '%-.20n: %.40s' '-%Z- %C/%m: %-20.20n %s'
> > |"
> >
> > That should help make the xterm titlebar use case more out-of-box.
> > But if it's not important, feel free to ignore the Makefile.am and
> > mutt_xtitle.c hunks in the diff.
>
> I dropped it only because it was in C. I've added a shell equivalent
> in contrib, which I think is a bit friendlier for users to hack on.
>
> Care to update the documentation?
--
====
Chip Killian
http://www.cs.ucsd.edu/~ckillian/
UCSD Graduate Student, Computer Science