summaryrefslogtreecommitdiff
path: root/alot/commands/search.py
Commit message (Collapse)AuthorAge
* commands/search: allow reversing search resultsAnton Khirnov2021-11-29
|
* commands/search: fix sort order in RefineCommandAnton Khirnov2021-02-22
|
* Cosmetics, clean up importsAnton Khirnov2021-02-10
|
* commands/search: refactor applying the tag commandAnton Khirnov2021-02-07
| | | | Apply toggle as a single db write rather than two.
* commands/thread: add --thread option to tagging commandsAnton Khirnov2021-02-04
| | | | | Makes the command affect the whole thread, rather than just those messages matching the query.
* db: use symbolic constants for sort ordersAnton Khirnov2021-01-31
|
* Use super() where applicable.Anton Khirnov2021-01-21
|
* commands/search: remove unused variableAnton Khirnov2021-01-20
|
* commands/search: remove unused codeAnton Khirnov2021-01-20
|
* db: make write operations asyncAnton Khirnov2021-01-20
|
* buffers/thread: more sophisticated heuristics for default weightsAnton Khirnov2021-01-09
| | | | Should produce better results in most situations.
* More missed list->set conversions for tagsAnton Khirnov2020-07-01
|
* Consistently use set/frozenset for tags.Anton Khirnov2020-05-24
|
* db/manager: drop support for adding/removing queriesAnton Khirnov2020-05-08
| | | | | This is not implemented in notmuch2 and does not really belong in alot. It can be done better through the notmuch utility.
* buffer: drop the ui parameter when not neededAnton Khirnov2020-04-25
|
* buffers/search: with walker.pyAnton Khirnov2020-04-19
| | | | It is only ever called from here, separating them makes little sense.
* buffers/thread: make the widget split-windowAnton Khirnov2020-03-01
| | | | | | | | | | The top part displayes the thread structure, the bottom half the message body. This makes more sense then displaying the message inside the tree structure and makes it easier to implement features such as folding a part of the message body. Drop commands related to folding, since that functionality does not exist anymore.
* db: drop useless gettersAnton Khirnov2020-02-06
|
* Remove unicode literals syntax from python2Lucas Hoffmann2019-11-06
|
* trailing whitespacesPatrick Totzke2019-08-15
|
* cosmeticsPatrick Totzke2019-06-02
|
* update docs for tag commands in search modePatrick Totzke2019-05-11
| | | | Closes #1391
* ui: Convert apply_command to a coroutineDylan Baker2018-07-26
| | | | | | This is a pretty invasive patch, since the ui code is used so extensively, it requires going into a lot of other code and converting those to coroutines, since before they returned deferred's.
* Capitalize option and command descriptions consistentlyAlexander Shpilkin2018-07-25
|
* new command "savequery"Patrick Totzke2018-07-24
| | | | | | ...that stores a query string as named search. in Search buffers, this will fall back on the current search string unless a full query string is provided as (second) argument.
* refactor common retagpromptMichael J Gruber2018-06-22
| | | | | | | | | Introduce a new source file common.py for common commands and, as a first example, define RetagPromptCommand there and register it from search.py. This shows how to "decorate" a class that is defined somewhere else, and thus how to decorate it multiple times.
* Remove old __future__ importsLucas Hoffmann2018-06-19
| | | | They are not needed for python >= 3.0.
* Fix some spelling mistakesLucas Hoffmann2017-09-02
|
* Fix message count in statusbar after taggingLucas Hoffmann2017-08-03
| | | | | | | | | | | | When the else branch was hit the count was already updated by SearchBuffer.rebuild() before the hitcount calculation was done and the final result was obviously off. This fixes it by just counting the messages in the search result directly. The same code is implicitly already called in the other branch of the if statement. So it is hopefully not a big overhead. Fixes #1098
* Fix typo in docstringLucas Hoffmann2017-07-11
|
* Use absolute_imports from __future__Lucas Hoffmann2017-01-18
|
* fix odd continuation and indentationDylan Baker2016-12-27
| | | | This is just whitespace changes.
* Replace map() and filter() with comprehensionsDylan Baker2016-12-21
| | | | | | | | This had the advantage of being more readable to people without a functional programming background, and it avoids the need to use lambdas which are both slow and have many corners in python. In a few cases it also allows us to use a generator expression instead of a materialized list, which save some memory.
* Remove trailing whitespace from inline docsLucas Hoffmann2016-12-11
| | | | It would otherwise be picked up by the autogenerated docs.
* 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 logging's native string interpolationLucas Hoffmann2016-12-09
|
* just formating (pep8 etc.)Patrick Totzke2014-08-02
|
* return Deferreds in Command.applyPatrick Totzke2013-10-30
| | | | | | ... in search.RefinePromptCommand, bufferlist.BufferCloseCommand and globals.BufferCloseCommand
* add missing return statement in RetagPromptCommandPatrick Totzke2013-10-30
| | | | cf #629
* retagprompt: skip empty tagsHamish Downer2013-10-13
| | | | (and so avoid having a leading comma)
* in retagprompt, sort the tagsHamish Downer2013-10-13
| | | | So the tags are in a predictable order.
* On retagprompt, append a commaHamish Downer2013-10-13
| | | | | So we don't have to remember to type the extra comma before typing a new tag.
* Merge branch '0.3.5-feature-smug-G'Patrick Totzke2013-08-24
|\
| * redraw the UI afer focus [last|first] commandsPatrick Totzke2013-08-09
| | | | | | | | | | | | | | | | | | | | If one replaces some widget without letting urwid know, one has to manually trigger it to redraw the screen. We enforce this to happen after focus_first and focus_last commands, which might replace widgets in search buffers. For sake of performance this is *not* done after all other focus movements.
* | fix the documentation for tag/untag/retag commands in search modeEmmanuel Beffara2013-08-24
|/
* pep8&pyflakes fixesPatrick Totzke2013-07-07
| | | | mostly automatically fixed
* changed repeatability default to False and reconsider repeatability of all ↵Sebastian Jeltsch2013-05-26
| | | | Commands
* Repeatability class property, mark more cmds as non-repeatableSebastian Jeltsch2013-05-26
|
* select commands no longer repeatableSebastian Jeltsch2013-05-26
|
* more vim-like movementsSebastian Jeltsch2013-04-20
| | | | | | | added: * ctrl d = half page down * ctrl u = half page up * G = focus last entry (only search buffer for now)