Conversation
3bd0793 to
1a13e74
Compare
1a13e74 to
c7e7816
Compare
|
I fixed the failing tests. The 2 codeclimate issues are actually issues already there before I started modifying these functions, should I try to fix them? (What is cognitive complexity anyway?) I'm not sure what's wrong with the first travis job, it doesn't show any errors but still fails. |
alot/widgets/thread.py
Outdated
| self._sourcetree = TextlinesList(sourcetxt, att, att_focus) | ||
| return self._sourcetree | ||
|
|
||
| def _get_content_parts(self): |
There was a problem hiding this comment.
I think this logic should not be part of the FocusableText widget tbh.
There was a problem hiding this comment.
It isn't? 😕 It's in MessageTree.
There was a problem hiding this comment.
Oh sorry, my bad: Github folding tricked me into believing the change is in FocussableText. I take it back :)
lucc
left a comment
There was a problem hiding this comment.
I did not read the main part of the code. Just some corner cases.
alot/commands/thread.py
Outdated
| repeatable = True | ||
|
|
||
| def __init__(self, **kwargs): | ||
| Command.__init__(self, **kwargs) |
There was a problem hiding this comment.
Do you need this constructor? Doesn't it inherit the parent constructor automatically?
alot/db/utils.py
Outdated
| for part | ||
| in typed_subpart_iterator(mail, *preferred.split('/'))] | ||
|
|
||
| # should we not, ask for all types |
There was a problem hiding this comment.
Unclear comment. Is this a question/todo or is it an explanation?
|
I like this feature very much. I tried to implement a different way to navigate the mime tree some time back (#894) but never finished it as I was stuck with some urwidtree issues. So I hope we can merge this feature but here are some more points for consideration/discussion/todo:
BTW I tried the PR and it works :) |
And yeah, it works ;-) |
|
Your suggestion in the second point sounds good: select preferred part when opening a mail and use current part when replying. (I have a test mail ready to try it ;) The cycles in trees are exactly what stopped me in my tracks back in #894. |
|
what do you mean by cycles in the tree? |
|
So I had to do something soft of ugly to quote the selected part, but I'm not sure it can be improved without overhauling a lot of command-related-code. Is it even possible to reply to some message that's not the |
|
About the cycles, it's probably because I did something wrong with the parent pointers, and at some point while holding the down arrow, all parents are suddenly erased and the parents are gone. Holding the up arrows goes through an infinite cycle of messages. |
|
preferring plaintext works again. |
|
maybe also something for the todo list: rebase and clean up history with nice logical steps in the commit log and descriptive messages. |
93a986c to
219ca8c
Compare
e1c6ec2 to
f740ff7
Compare
9ea5ee3 to
4afb878
Compare
3ef23d7 to
44468a7
Compare
|
Rebased this feature onto the new master. |
|
I need some help to finish this:
|
44468a7 to
57b6966
Compare
57b6966 to
b2d979e
Compare
b2d979e to
31f7ab9
Compare
31f7ab9 to
3657c04
Compare
|
I believe this was superseded by #1480 so I'm closing this. |
Fixes #405.
:nextctypeto:nextpartand reflect this in the codeIssues: