From: col@baibell.org (Colin Bell)
Subject: [sup-talk] [PATCH] Show unread message count in thread index
Date: Wed, 07 Nov 2007 21:29:03 +1100 [thread overview]
Message-ID: <1194430991-sup-3015@lankhmar> (raw)
In-Reply-To: <1194400626-sup-6556@south>
Excerpts from William Morgan's message of Wed Nov 07 13:09:46 +1100 2007:
> How about an "index-mode-widget" hook instead, that lets you replace the
> "(###)" with any string you want, based on the thread? (And if the
> return value is nil, use the current thread.size string.)
>
> You'll have to scan over them twice to get the sizing right, but it
> shouldn't be too bad of a patch...
>
Attempt 2 :-)
I've attached an example hook as well as the diff. If you accept the
patch something like the example should go up on the wiki.
Please take a careful look at this patch as I am just learning Ruby so
I've probably done a few silly things.
index-mode-widget
-----------------
File: ~/.sup/hooks/index-mode-widget.rb
Executes when formatting the output of the number of messages for each thread in the thread index.
Variables:
thread: The message thread to be formatted.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: widget.diff
Type: application/octet-stream
Size: 2708 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071107/dd62a04e/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: index-mode-widget.rb
Type: application/octet-stream
Size: 203 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071107/dd62a04e/attachment-0001.obj
next prev parent reply other threads:[~2007-11-07 10:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-05 10:01 Colin Bell
2007-11-07 2:09 ` William Morgan
2007-11-07 3:55 ` Colin Bell
2007-11-07 10:29 ` Colin Bell [this message]
2007-11-07 20:08 ` William Morgan
2007-11-07 21:09 ` Marcus Williams
2007-11-07 23:12 ` William Morgan
2007-11-08 8:31 ` Marcus Williams
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=1194430991-sup-3015@lankhmar \
--to=col@baibell.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