Conversation
87e4e3d to
6073f8e
Compare
|
Quoting Lucas Hoffmann (2016-09-14 08:11:02)
Alot uses urwidtrees https://github.com/pazz/urwidtrees alot/widgets/thread.py (defines a Widget tree, equivalent to urwids' where this is used to create a TreeBox (eq. to urwids' ListBox), HTH, |
|
thanks @pazz for the pointers. I tried to use the trees but until now I failed. See the three last commits for my attempts. Maybe you spot some mistakes. Currently I get this exception and have to |
|
@pazz I tried several combinations but I am at loss. Maybe you can give me some pointers? What am I doing wrong? I create the tree structure and have something like this ('no filename multipart/signed, 203K',
[('no filename multipart/mixed, 202K',
[('no filename text/plainutf-8, 297', None),
('no filename application/pdf, 201K', None)]),
('signature.asc application/pgp-signatureus-ascii, 630', None)])I then replace all the strings in this structure with the corresponding According to the debugging output I then succed in generating a But at some later point I get an exception. I think it is during the rendering of the new widgets: |
|
I'm not sure without looking at your code but I suspect that the list structure given to your SimpleTree is broken: |
87fb810 to
6bdae67
Compare
7d6a9a7 to
167ba93
Compare
ba53094 to
440c880
Compare
|
I am slowly getting there. The first stack traces are gone, now I have to debug some ugly misbehavior when I toggle the mimetree for several messages and then move over the message border to the next message with the arrow key: the display is messed up and the focus is stuck in a loop. |
6ba3a18 to
b9e42af
Compare
b9e42af to
a5c456e
Compare
a5c456e to
f3bd425
Compare
f3bd425 to
8a9a384
Compare
5449d9e to
1cd1c46
Compare
|
@pazz I am sorry to bother you but I might need some help from you again to return to this PR. Currently I can display a mime tree for a message and return to the text view just fine. There is one specific bug. It needs
The bug:
|
The command is implemented analogous to togglesource and similar commands. But this commit only contains the toggleing logic and no generation of actual mime trees.
Only minimal information and no indenting is shown until now.
|
I belive #1480 covers already the content of this pull-req and it can be closed. Isn't it? |


This is an attempt to implement #862.
The new command
:togglemimetreewill (similar to:togglesourceand friends) change the displayed message. It will toggle between the previous used representation and a text representation of the mime tree.TODO list (also see #862)
For the line drawing I could use something like https://github.com/jml/tree-format but as we already do display line drawings for the thread tree I suppose there is some code in alot that can maybe help me. @ Everybody: do you know where it might be?