Subject: Re: [sup-talk] Body preview separator inbox-mode

From: Matthieu Rakotojaona <[email-masked]>
Date: Thu, 17 Feb 2011 14:58:40 +0100

Excerpts from Shadowfirebird's message of 2011-02-17 12:24:42 +0100:
> > Consider defining a different color for :snippet in .sup/colors.yaml. I
> > use
> > 
> >   :snippet: 
> >   :bg: default
> >   :fg: black
> >   :attrs:
> >   - bold
> > 
> > which gives dark gray on black, works ok for me.
> 
> To clarify, it appears you can copy the above into a new file .sup/colors.yaml and restart sup -- and it works brilliantly.  Ta.

Hello,

Strange, I did as you say and I have an error : 

NoMethodError from thread: main
undefined method `[]' for nil:NilClass
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/colormap.rb:190:in `rescue in block in populate_colormap'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/colormap.rb:187:in `block in populate_colormap'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/colormap.rb:186:in `each_pair'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/colormap.rb:186:in `populate_colormap'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/bin/sup:182:in `<module:Redwood>'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/bin/sup:69:in `<top (required)>'
/usr/bin/sup:19:in `load'
/usr/bin/sup:19:in `<main>'

yet I have the correct .sup/colors.yaml :

$ cat .sup/color.yaml
:snippet:
:bg: default
:fg: black
:attrs:
- bold

Do you know where the problem might come from ?

Thanks,
-- 
Matthieu RAKOTOJAONA
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Philippe LeCavalier <[email-masked]>
Date: Thu, 17 Feb 2011 09:42:59 -0500

> yet I have the correct .sup/colors.yaml :
Did you double check to ensure you don't already have that entry? I did.
The only thing I added was the '- bold'
-- 
Thanks,
Phil

---

From: Ico Doornekamp <[email-masked]>
Date: Thu, 17 Feb 2011 10:59:56 +0100

* On Thu Feb 17 10:20:10 +0100 2011, Shadowfirebird wrote:
 
> > Could we have a body preview separator(| or , maybe?). I find it less
> > efficient when visually browsing the inbox-mode to not have any kind of
> > separator between each thread/response.
> 
> +1.   I can't tell what's subject and what's message body 'hint'.

  :snippet: 
  :bg: default
  :fg: black
  :attrs:
  - bold

-- 
:wq
^X^Cy^K^X^C^C^C^C

---

From: Ico Doornekamp <[email-masked]>
Date: Thu, 17 Feb 2011 18:45:15 +0100

* On Thu Feb 17 17:44:17 +0100 2011, Gregor Hoffleit wrote:
 
> Afaik, YAML (http://www.yaml.org/spec/1.2/spec.html) depends on the
> indentation for determination of the structure. I would have expected
> the above snippet definition to look like this:
> 
>     :snippet:
>       :bg: default
>       :fg: black
>       :attrs:
>       - bold

Very true, apologies for the cut&paste failure

---

From: Philippe LeCavalier <[email-masked]>
Date: Wed, 16 Feb 2011 15:23:42 -0500

Just an idea...

---

From: Gregor Hoffleit <[email-masked]>
Date: Thu, 17 Feb 2011 17:44:17 +0100

* Matthieu Rakotojaona <[email-masked]> [Do Feb 17 14:58:40 +0100 2011]

    :snippet:
      :bg: default
      :fg: black
      :attrs:
      - bold

Regards,
    Gregor

---

From: Shadowfirebird <[email-masked]>
Date: Thu, 17 Feb 2011 11:24:42 +0000

-- 
System restarting, wait...
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Shadowfirebird <[email-masked]>
Date: Thu, 17 Feb 2011 09:20:10 +0000

-- 
A boss with no humor is like a job that's no fun.
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Matthieu Rakotojaona <[email-masked]>
Date: Thu, 17 Feb 2011 19:18:48 +0100

> Very true, apologies for the cut&paste failure

It's working now, many thanks !
-- 
Matthieu RAKOTOJAONA
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk