Subject: Re: [sup-talk] Show unread count in terminal window title

From: Alexander Shulgin <[email-masked]>
Date: Sat, 30 Apr 2011 16:04:26 +0300

On Fri, Apr 29, 2011 at 13:59, Alexander Shulgin <[email-masked]> wrote:
> Hello fellow sup users,
>
> I'd like sup to display the count of unread messages in the terminal
> window's titlebar like this: "Sup 0.11 :: Inbox (1)".  Currently it
> only displays "Sup 0.11 :: Inbox".

And here's what I could find.  There's a hook to set the window title,
called .sup/hooks/terminal-title-text.rb.  I can get close to what I
want with this:

("Sup 0.11 :: #{title}" + (num_inbox_unread > 0 ?
"(#{num_inbox_unread})" : "")) if mode == "inbox-mode"

However, I'd like to avoid hard-coding the "Sup #{version_here}" part,
or at least use some variable.  Also, there's a bug with manually
changing (un)read status of a thread: the unread count first goes to
1, and only on next keystroke it's updated to reflect that the whole
thread's unread.  The same is when marking a whole thread read...

--
Alex
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Alexander Shulgin <[email-masked]>
Date: Fri, 29 Apr 2011 13:59:01 +0300

Hello fellow sup users,

I've tried searching this list archives, but it appears nobody asked
for this before, and since the issue tracker is down I can't tell if
there's such a feature request already.

Any suggestions?  Should I ask on the -devel list instead?

--
Alex
PS: I'm proficient in Ruby, but didn't try to read any of the sup code yet.
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk