| Commit message (Collapse) | Author | Age |
| |
|
| |
|
| |
|
|
|
|
|
| |
Remove unnecessary instance variables that are only really needed within
one function. Prepare the class for async rebuild.
|
| |
|
|
|
|
| |
It is not useful and too complex/fragile to maintain.
|
|
|
|
|
| |
It should be cleaner and easier to use, and eventually replace the
custom tree walker in the thread display buffer.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Hotfix for double width characters causing columns misalign in search
view (https://github.com/pazz/alot/issues/1393)
|
| |
|
|
|
|
|
| |
this is only possible for "tags" parts, in case the list of tags is
empty or all tags are hidden.
|
|
|
|
|
| |
.. from the theming structure, instead of pushing these as extra
parameters through helper functions.
|
|
|
|
|
| |
into several small functions that prepare the content string for their
respective part of a threadline.
|
|
|
|
|
|
| |
We currently call dict_keys.sort(), which doesn't work because it
doesn't exist. The whole function is kinda strange anyway, since there's
a lot of work done in general that only applies in once case.
|
|
|
|
|
|
|
|
|
| |
This factors out the method _build_part, which is used to create local
Text/Column widgets for each indivitual part of the threadline.
The method is now broken in two: one for text (= subject, authors,..)
parts and one for tags (= Columns of TagWidgets) and both those
functions are moved out of the Threadline class.
|
|
|
|
| |
This was superseeded by settings.get_threadline_theming a while back
|
|
|
|
|
| |
this simplifies the rebuilding of alot.widgets.search.Threadline,
removes duplicate and ugly code.
|
|
|
|
|
|
|
|
|
|
| |
this will cause the width of a (author/tag/..) string in a threadline
widget to be computed by urwids `Widget.pack` function rather than just
taking the length of the string.
This fixes an issue with utf-8 wide characters such as Kanji, fow which
urwid needs extra space, and consequently adds additional rows when
packing such Textwidgets into Columns as we do in threadlines.
|
|
|
|
| |
They are not needed for python >= 3.0.
|
|
|
|
|
| |
This mostly shortens lines down to <=79 chars and fixes some other small
things I found using the pep8 tool.
|
|
|
|
|
|
|
| |
This can create circular imports in unittests, which causes difficult to
debug errors.
Fixes #1076
|
|
|
|
|
|
| |
This is both a performance issue (since cmp is slower than rich
comparisons), and a python3 issue since cmp (and __cmp__) are gone in
python 3.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
- use relative imports if possible
- group imports into standard library, third party, and alot modules
- sort imports alphabetically
|
| |
|
| |
|
|
|
|
|
|
|
| |
this has been replaced long ago by setting `search.threadline.parts`
in theme-files.
cf issue #631
|
|
|
|
|
| |
before, it did not re-read the thread info from the index.
This showed when updating the tags for individual threads.
|
| |
|
|
|