Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: Alexander Shulgin <alex.shulgin@gmail.com>
To: sup-talk@rubyforge.org
Subject: Re: [sup-talk] Show unread count in terminal window title
Date: Sat, 30 Apr 2011 16:04:26 +0300	[thread overview]
Message-ID: <BANLkTi=CbgUx8b7cyVqCLqkzEuHFFVkCuA@mail.gmail.com> (raw)
In-Reply-To: <BANLkTim7_dDcxcGxLaNtKxtBLEUG7tJJ5Q@mail.gmail.com>

On Fri, Apr 29, 2011 at 13:59, Alexander Shulgin <alex.shulgin@gmail.com> 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
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

      reply	other threads:[~2011-04-30 14:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-29 10:59 Alexander Shulgin
2011-04-30 13:04 ` Alexander Shulgin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='BANLkTi=CbgUx8b7cyVqCLqkzEuHFFVkCuA@mail.gmail.com' \
    --to=alex.shulgin@gmail.com \
    --cc=sup-talk@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox