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.

Attachment: widget.diff
Description: Binary data

Attachment: index-mode-widget.rb
Description: Binary data

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

Reply via email to