summaryrefslogtreecommitdiff
path: root/alot/widgets/search.py
Commit message (Collapse)AuthorAge
* Add common message text sanitization.Anton Khirnov2021-02-10
|
* Cosmetics, clean up importsAnton Khirnov2021-02-10
|
* widgets/search: display the number of matching messages in the threadAnton Khirnov2021-02-10
|
* widgets/search: cleanup ThreadlineWidgetAnton Khirnov2021-01-20
| | | | | Remove unnecessary instance variables that are only really needed within one function. Prepare the class for async rebuild.
* widgets/search: remove unused variableAnton Khirnov2021-01-20
|
* widgets/search: remove support for the 'content' fieldAnton Khirnov2020-04-13
| | | | It is not useful and too complex/fragile to maintain.
* db: rewrite the API for representing message treesAnton Khirnov2020-02-06
| | | | | It should be cleaner and easier to use, and eventually replace the custom tree walker in the thread display buffer.
* db: drop useless gettersAnton Khirnov2020-02-06
|
* db/thread: drop useless getter functionsAnton Khirnov2020-02-06
|
* rename Message.get_text_content() to get_body_text()Patrick Totzke2019-08-15
|
* Fix double width characters in search viewCaio Prado2019-05-14
| | | | | Hotfix for double width characters causing columns misalign in search view (https://github.com/pazz/alot/issues/1393)
* don't include quoted lines in msg content summaryPatrick Totzke2018-11-08
|
* deal with cases where part widget can be NonePatrick Totzke2018-07-24
| | | | | this is only possible for "tags" parts, in case the list of tags is empty or all tags are hidden.
* determine min/max width and alignment when usedPatrick Totzke2018-07-24
| | | | | .. from the theming structure, instead of pushing these as extra parameters through helper functions.
* further break down threadline.build_text_partPatrick Totzke2018-07-24
| | | | | into several small functions that prepare the content string for their respective part of a threadline.
* widgets/search: Don't try to sort an iteratorDylan Baker2018-07-24
| | | | | | 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.
* refactor widgets.search.ThreadlinePatrick Totzke2018-07-24
| | | | | | | | | 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.
* remove unused static methodPatrick Totzke2018-07-24
| | | | This was superseeded by settings.get_threadline_theming a while back
* refactor threadline widgetPatrick Totzke2018-07-24
| | | | | this simplifies the rebuilding of alot.widgets.search.Threadline, removes duplicate and ugly code.
* fix wide characters in search modePatrick Totzke2018-07-24
| | | | | | | | | | 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.
* Remove old __future__ importsLucas Hoffmann2018-06-19
| | | | They are not needed for python >= 3.0.
* pep8 fixesPatrick Totzke2017-09-01
| | | | | This mostly shortens lines down to <=79 chars and fixes some other small things I found using the pep8 tool.
* settings: do not store SettingsManager instance in __init__.pyDylan Baker2017-08-03
| | | | | | | This can create circular imports in unittests, which causes difficult to debug errors. Fixes #1076
* Replace cmp with rich comparisonsDylan Baker2017-01-27
| | | | | | 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 absolute_imports from __future__Lucas Hoffmann2017-01-18
|
* widgets/search: make method that doesn't use self a static methodDylan Baker2016-12-21
|
* Turn methods with no `self` usage into staticmethodsLucas Hoffmann2016-12-18
|
* Clean up importsLucas Hoffmann2016-12-09
| | | | | | - use relative imports if possible - group imports into standard library, third party, and alot modules - sort imports alphabetically
* Use `is` operator for comparing with `None` (Pep8)Cody2016-12-06
|
* Do not crash when emails' date is malformated.Tony Cheneau2016-01-16
|
* remove unused config option `display_content_in_threadline`Patrick Totzke2013-07-02
| | | | | | | this has been replaced long ago by setting `search.threadline.parts` in theme-files. cf issue #631
* fix ThreadlineWidget.refresh()Patrick Totzke2012-10-06
| | | | | before, it did not re-read the thread info from the index. This showed when updating the tags for individual threads.
* theming: fix c&p error in mailcount part of ThreadlineWidgetPatrick Totzke2012-08-10
|
* cleanup: split widgets.py and pep8/pyflakes fixesPatrick Totzke2012-08-10