Christian Dietrich
2009-Sep-29 18:14 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
Hey there, i am using sup now for just a few weeks and it is just amazing how good it works (the lack of folders iritated me a little bit at first). But now to my Request, i would like to have something like datelines in index mode, like: ,----------------- | -- Today | 12:23 ... | 23:42 ... | -- Yesterday | Yest. 9 .... | Yest. 4.... | -- Last week | ..... .--------------- I think this would cause an bigger overview over the mails, especially in the inbox. I tried to implement the feature by my self, but the mapping beetween `curpos'' and `@threads'' in modes/thread-index-mode.rb made this a little bit hard, and i didn''t know how to solve this problem without breaking sup. Perhaps you can give me a hint, how this problem with the direct mapping can be solved. greetz didi -- No documentation is better than bad documentation -- Das Ausdrucken dieser Mail wird urheberrechtlich verfolgt.
William Morgan
2009-Sep-30 18:17 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
Reformatted excerpts from Christian Dietrich''s message of 2009-09-29:> i am using sup now for just a few weeks and it is just amazing how > good it works (the lack of folders iritated me a little bit at > first).Welcome!> But now to my Request, i would like to have something like datelines > in index mode, like:Cool idea. I''d like to see how this looks.> I tried to implement the feature by my self, but the mapping beetween > `curpos'' and `@threads'' in modes/thread-index-mode.rb made this a > little bit hard, and i didn''t know how to solve this problem without > breaking sup. Perhaps you can give me a hint, how this problem with > the direct mapping can be solved.If you look at #regen_text, @text and @lines are the two variables that control the display. @text is an array of the GUI elements for each line of the display. Right now it''s just set to one line for each thread. You want to add one additional element at the appropriate position. for each date line. GUI elements are represented as arrays of [color, text] pairs; you can look at #text_for_thread_at for an example. Then, you want to make sure that @lines is set correctly. @lines is a map (hash) from line number to thread (so that when the user presses a key, we know which thread the cursor is resting on). Hope that helps. -- William <wmorgan-sup at masanjin.net>
Christian Dietrich
2009-Oct-02 20:48 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
Excerpts from William Morgan''s message of Mi Sep 30 20:17:55 +0200 2009:> Cool idea. I''d like to see how this looks. > > > I tried to implement the feature by my self, but the mapping beetween > > `curpos'' and `@threads'' in modes/thread-index-mode.rb made this a > > little bit hard, and i didn''t know how to solve this problem without > > breaking sup. Perhaps you can give me a hint, how this problem with > > the direct mapping can be solved. > > If you look at #regen_text, @text and @lines are the two variables that > control the display. @text is an array of the GUI elements for each line > of the display. Right now it''s just set to one line for each thread. You > want to add one additional element at the appropriate position. for each > date line. GUI elements are represented as arrays of [color, text] > pairs; you can look at #text_for_thread_at for an example. > > Then, you want to make sure that @lines is set correctly. @lines is a > map (hash) from line number to thread (so that when the user presses a > key, we know which thread the cursor is resting on).Thank you, that helped a much. I implemented the feature, it is available at git://github.com/stettberger/sup-mail.git branch time_marks, it is one commit ahead of next. It is enabled with setting the config option ":time_markers_in_index_mode: true" At runtime it can be toggled via ''%'' (just randomly choosen by me) greetz didi -- No documentation is better than bad documentation -- Das Ausdrucken dieser Mail wird urheberrechtlich verfolgt.
Christian Dietrich
2009-Oct-08 07:05 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
Excerpts from Christian Dietrich''s message of Fr Okt 02 22:48:24 +0200 2009:> Thank you, that helped a much. I implemented the feature, it is > available at git://github.com/stettberger/sup-mail.git > branch time_marks, it is one commit ahead of next. It is enabled > with setting the config option ":time_markers_in_index_mode: true" > At runtime it can be toggled via ''%'' (just randomly choosen by me)Ok now i did a little bit of reworking the code (don''t make it sup crash :-) and added a little bit color). The is now :time_marker_color. I attached a screenshot of the time_marks. greetz didi -- No documentation is better than bad documentation -- Das Ausdrucken dieser Mail wird urheberrechtlich verfolgt. -------------- next part -------------- A non-text attachment was scrubbed... Name: sup-time-mark.png Type: image/png Size: 38362 bytes Desc: not available URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091008/89c94173/attachment.png>
Christopher Bertels
2009-Oct-08 12:31 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
Excerpts from Christian Dietrich''s message of Do Okt 08 09:05:47 +0200 2009:> Ok now i did a little bit of reworking the code (don''t make it sup > crash :-) and added a little bit color). The is now > :time_marker_color. I attached a screenshot of the time_marks.Looks really cool, I''ll give it a try :) -- ===============================Christopher Bertels http://www.adztec-independent.de GPG Key ID: 0x2345b203 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091008/91e8eba7/attachment.bin>
Christopher Bertels
2009-Oct-08 12:44 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
Ok, I like it so far. But what would really rock (IMO) would be the possibility to collapse all messages, that are from yesterday or 2 weeks ago etc. What do you think? -- ===============================Christopher Bertels http://www.adztec-independent.de GPG Key ID: 0x2345b203 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091008/88002eca/attachment.bin>
Christian Dietrich
2009-Oct-08 18:28 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
Excerpts from Christopher Bertels''s message of Do Okt 08 14:44:32 +0200 2009:> Ok, I like it so far. But what would really rock (IMO) would be the > possibility to collapse all messages, that are from yesterday or 2 > weeks ago etc. > What do you think?Yeah thats cool, i implemented it, just type <Enter> on a Time Mark (after pulling) greetz didi -- No documentation is better than bad documentation -- Das Ausdrucken dieser Mail wird urheberrechtlich verfolgt.
Christopher Bertels
2009-Oct-08 19:33 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
Excerpts from Christian Dietrich''s message of Do Okt 08 20:28:59 +0200 2009:> Yeah thats cool, i implemented it, just type <Enter> on a Time Mark > (after pulling)Indeed, very nice. Thanks :) I''d like to see this in sup''s mainline, btw :) -- ===============================Christopher Bertels http://www.adztec-independent.de GPG Key ID: 0x2345b203 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 969 bytes Desc: not available URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091008/1e566f11/attachment.bin>
Gaute Hope
2009-Oct-08 19:44 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
Excerpts from Christopher Bertels''s message of to. okt. 08 21:33:44 +0200 2009:> Excerpts from Christian Dietrich''s message of Do Okt 08 20:28:59 +0200 2009: > > Yeah thats cool, i implemented it, just type <Enter> on a Time Mark > > (after pulling) > > Indeed, very nice. Thanks :) > I''d like to see this in sup''s mainline, btw :)+1 ! Looks great! - gaute -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091008/e0c720ab/attachment.bin>
Benoît PIERRE
2009-Oct-08 20:04 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
Excerpts from Christian Dietrich''s message of Thu Oct 08 20:28:59 +0200 2009:> Excerpts from Christopher Bertels''s message of Do Okt 08 14:44:32 +0200 2009: > > Ok, I like it so far. But what would really rock (IMO) would be the > > possibility to collapse all messages, that are from yesterday or 2 > > weeks ago etc. > > What do you think? > > Yeah thats cool, i implemented it, just type <Enter> on a Time Mark > (after pulling)This is great, I love it. Attached 2 small patches: - fix a warning (space before opening parenthesis in function call) - fix a bug with thread selection when time marks are not visible Cheers, -- A: Because it destroys the flow of conversation. Q: Why is top posting dumb? -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-warning-fix.patch Type: application/octet-stream Size: 770 bytes Desc: not available URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091008/1336c51c/attachment.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0002-fix-selection-when-time-marks-are-disabled.patch Type: application/octet-stream Size: 1114 bytes Desc: not available URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091008/1336c51c/attachment-0001.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 243 bytes Desc: not available URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091008/1336c51c/attachment.bin>
Gaute Hope
2009-Oct-08 20:12 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
Excerpts from Gaute Hope''s message of to. okt. 08 21:44:30 +0200 2009:> Excerpts from Christopher Bertels''s message of to. okt. 08 21:33:44 +0200 2009: > > Excerpts from Christian Dietrich''s message of Do Okt 08 20:28:59 +0200 2009: > > > Yeah thats cool, i implemented it, just type <Enter> on a Time Mark > > > (after pulling)Would be nice if the ''1'' keybinding would select the first message and not the first line. Possibly another binding to collapse the current day when a message is selected (maybe h or E to keep things similar to the message view)? - gaute -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091008/814823ee/attachment.bin>
Benoît PIERRE
2009-Oct-08 20:26 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
Excerpts from Gaute Hope''s message of Thu Oct 08 22:12:31 +0200 2009:> Excerpts from Gaute Hope''s message of to. okt. 08 21:44:30 +0200 2009: > > Excerpts from Christopher Bertels''s message of to. okt. 08 21:33:44 +0200 2009: > > > Excerpts from Christian Dietrich''s message of Do Okt 08 20:28:59 +0200 2009: > > > > Yeah thats cool, i implemented it, just type <Enter> on a Time Mark > > > > (after pulling) > > Would be nice if the ''1'' keybinding would select the first message and > not the first line. Possibly another binding to collapse the current day when > a message is selected (maybe h or E to keep things similar to the > message view)?And ''t'' should select the next thread, not the next line. ''a'' and ''A'' too, in fact a time tag should only be selectable manually, using Up/Down or ''j''/''k''. Or never if collapsing/expending is possible with a mapping (my vote goes to ''E''). Cheers, -- A: Because it destroys the flow of conversation. Q: Why is top posting dumb? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091008/ab965140/attachment.bin>
Christian Dietrich
2009-Oct-08 20:50 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
> Would be nice if the ''1'' keybinding would select the first message and > not the first line. Possibly another binding to collapse the current day when > a message is selected (maybe h or E to keep things similar to the > message view)?Yeah, implemented that, and the other two patches in the branch, like the idea. greetz didi -- No documentation is better than bad documentation -- Das Ausdrucken dieser Mail wird urheberrechtlich verfolgt.
Christian Dietrich
2009-Oct-09 07:19 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
> And ''t'' should select the next thread, not the next line. ''a'' and ''A'' > too, in fact a time tag should only be selectable manually, using > Up/Down or ''j''/''k''. Or never if collapsing/expending is possible with a > mapping (my vote goes to ''E'').Jep thats right, i fixed that. Please pull. greetz didi -- No documentation is better than bad documentation -- Das Ausdrucken dieser Mail wird urheberrechtlich verfolgt.
Gaute Hope
2009-Oct-09 07:31 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
Excerpts from Christian Dietrich''s message of to. okt. 08 22:50:07 +0200 2009:> > Would be nice if the ''1'' keybinding would select the first message and > > not the first line. Possibly another binding to collapse the current day when > > a message is selected (maybe h or E to keep things similar to the > > message view)? > > Yeah, implemented that, and the other two patches in the branch, > like the idea.This doesn''t work for me: ''1''/''^'' just makes the view scroll one down; hiding the Today marker (same as hitting ''J'' one time). 0 works like expected. a/A/&/d/S/t and E seems to be working alright. - gaute -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091009/0258c39f/attachment.bin>
Christian Dietrich
2009-Oct-09 07:44 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
Excerpts from Gaute Hope''s message of Fr Okt 09 09:31:38 +0200 2009:> This doesn''t work for me: ''1''/''^'' just makes the view scroll one down; hiding > the > Today marker (same as hitting ''J'' one time). 0 works like expected. > > a/A/&/d/S/t and E seems to be working alright.Yeah ok, that should be fixed now. (I didn''t even now about this keystroke before...) greetz didi -- No documentation is better than bad documentation -- Das Ausdrucken dieser Mail wird urheberrechtlich verfolgt.
Gaute Hope
2009-Oct-09 09:45 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
Excerpts from Christian Dietrich''s message of fr. okt. 09 09:44:02 +0200 2009:> Excerpts from Gaute Hope''s message of Fr Okt 09 09:31:38 +0200 2009: > > This doesn''t work for me: ''1''/''^'' just makes the view scroll one down; hiding > > the > > Today marker (same as hitting ''J'' one time). 0 works like expected. > > > > a/A/&/d/S/t and E seems to be working alright. > > Yeah ok, that should be fixed now. (I didn''t even now about this > keystroke before...)Just discovered a weird bug.. when this thread got polled and updated the message count, in this case (13), got attached to the thread beneath, which only had one message, and appeared where it shouldn''t be anything.. the top thread didn''t have any post count. It seemed to only have affected the top two messages, as the count on the third one seemed normal. Not entierly sure what caused it since I can''t really reproduce it by sending myself emails.. if it happens again ill post screenshot. Im using time_marker branch rebased ontop of origin/next. - gaute -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091009/8bac691b/attachment.bin>
Gaute Hope
2009-Oct-09 10:12 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
Excerpts from Gaute Hope''s message of fr. okt. 09 11:45:13 +0200 2009:> Not entierly sure what caused it since I can''t really reproduce it by > sending myself emails.. if it happens again ill post screenshot. > > Im using time_marker branch rebased ontop of origin/next.Ok.. now the top message count just got copied down to the line beneath (which should be empty). Sup had just been running for a while, no new messages, didn''t happen on first pool.. - gaute -------------- next part -------------- A non-text attachment was scrubbed... Name: 2009-10-09-120801_634x755_scrot.png Type: image/png Size: 29135 bytes Desc: not available URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091009/58f1eb31/attachment.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091009/58f1eb31/attachment.bin>
Christian Dietrich
2009-Oct-09 10:39 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
Excerpts from Gaute Hope''s message of Fr Okt 09 12:12:21 +0200 2009:> Excerpts from Gaute Hope''s message of fr. okt. 09 11:45:13 +0200 2009: > > Not entierly sure what caused it since I can''t really reproduce it by > > sending myself emails.. if it happens again ill post screenshot. > > > > Im using time_marker branch rebased ontop of origin/next. > > Ok.. now the top message count just got copied down to the line > beneath (which should be empty). Sup had just been running for a while, > no new messages, didn''t happen on first pool..I have no idea whats causing this, seems like the data of two threads is mixed together? greetz didi -- No documentation is better than bad documentation -- Das Ausdrucken dieser Mail wird urheberrechtlich verfolgt.
Gaute Hope
2009-Oct-09 11:00 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
Excerpts from Christian Dietrich''s message of fr. okt. 09 12:39:27 +0200 2009:> Excerpts from Gaute Hope''s message of Fr Okt 09 12:12:21 +0200 2009: > > Excerpts from Gaute Hope''s message of fr. okt. 09 11:45:13 +0200 2009: > > > Not entierly sure what caused it since I can''t really reproduce it by > > > sending myself emails.. if it happens again ill post screenshot. > > > > > > Im using time_marker branch rebased ontop of origin/next. > > > > Ok.. now the top message count just got copied down to the line > > beneath (which should be empty). Sup had just been running for a while, > > no new messages, didn''t happen on first pool.. > > I have no idea whats causing this, seems like the data of two > threads is mixed together?Or the thread count isn''t aware of the Today mark and still thinks line 2 is thread 2? Don''t really know anything about the implementation. When it happens it doesn''t dissapear before I do a M or there is a pull that redraws the screen.. just pressing Ctrl+L or opening/closing a thread doesn''t remove it. As said earlier it only seems to affect the top two threads. - gaute -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091009/de9efe70/attachment.bin>
Christian Dietrich
2009-Oct-12 07:11 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
Excerpts from Gaute Hope''s message of Fr Okt 09 13:00:19 +0200 2009:> Or the thread count isn''t aware of the Today mark and still thinks line > 2 is thread 2? Don''t really know anything about the implementation. > > When it happens it doesn''t dissapear before I do a M or there is a pull > that redraws the screen.. just pressing Ctrl+L or opening/closing a > thread doesn''t remove it. > > As said earlier it only seems to affect the top two threads.Hi, i also experienced now this Problem, but can''t see were this problem is located, because i don''t touch the internal states of the threads. There must be one @thread[curpos] left, which causes this Problem. greetz didi -- No documentation is better than bad documentation -- Das Ausdrucken dieser Mail wird urheberrechtlich verfolgt.
Christian Dietrich
2009-Oct-12 19:23 UTC
[sup-talk] Feature Request: Collecting Lines in Index Mode
Excerpts from Christian Dietrich''s message of Mo Okt 12 09:11:35 +0200 2009:> Excerpts from Gaute Hope''s message of Fr Okt 09 13:00:19 +0200 2009: > > Or the thread count isn''t aware of the Today mark and still thinks line > > 2 is thread 2? Don''t really know anything about the implementation. > > > > When it happens it doesn''t dissapear before I do a M or there is a pull > > that redraws the screen.. just pressing Ctrl+L or opening/closing a > > thread doesn''t remove it. > > > > As said earlier it only seems to affect the top two threads. > > Hi, > i also experienced now this Problem, but can''t see were this problem > is located, because i don''t touch the internal states of the > threads. There must be one @thread[curpos] left, which causes this > Problem. > > greetz didiHi, i think i''ve fixed the problem now, it was a wrong mapping in update_text_for_line, now the situation that caused the error before succeeds. There was a misguiding declaration of @size_widgets in the init function. @size_widgets isn''t a Hash, mapping line numbers to a size_widget, it is the same index as in @threads for the specific thread. greetz didi PS: please pull :-) -- No documentation is better than bad documentation -- Das Ausdrucken dieser Mail wird urheberrechtlich verfolgt.