summaryrefslogtreecommitdiff
path: root/alot/commands/search.py
Commit message (Collapse)AuthorAge
* 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)
* re-enable toggletags command in search modePatrick Totzke2012-10-06
| | | | ... which has been accidentally removed before
* touch tag and untag commands in search modePatrick Totzke2012-10-06
| | | | | | these now support an `--all` parameter that allows to tag all messages in the (search) result set instead of just all in the selected thread.
* cleanup tagsearch commandsPatrick Totzke2012-09-23
| | | | | - tries to omit code dupication, - refresh issue
* remove unnecessary assertPatrick Totzke2012-09-23
| | | | | The user can only ever set the target string via a command parameter, which is sanitizd by argparse as we use choices..
* Consolidate search and thread tagging commands.William Erik Baxter2012-09-23
|
* Move refresh outside of thread loop.William Erik Baxter2012-09-23
|
* Iterate over threads to apply tag changes.William Erik Baxter2012-09-23
|
* Add tag and untag on search results.William Erik Baxter2012-09-23
|
* cleanup: split widgets.py and pep8/pyflakes fixesPatrick Totzke2012-08-10
|
* Merge branch '0.3.1-fix-msg-count-463'Patrick Totzke2012-06-24
|\
| * fix update result count after tag operationsPatrick Totzke2012-06-14
| | | | | | | | .. in search buffer. cf issue #463
* | add copyright statements to all source filesPatrick Totzke2012-06-14
|/ | | | cf issue #472
* removed uneccesary refresh callPatrick Totzke2012-05-17
| | | | not needed anymore
* fix: hardcode buffer in after-flush callbackPatrick Totzke2012-05-12
| | | | | this fixes an issue (#441) that is due to the buffer type changing in between flush trials
* refacor: move db errors to separate filePatrick Totzke2012-03-11
|
* no tag/untag/toggletags operation on empty resultPatrick Totzke2012-02-24
| | | | | ..sets in search buffers. closes #335
* parameter 'flush' for search.TagCommandPatrick Totzke2012-02-08
| | | | | | | | | that determines wether or not the database manager should write out after the command. defaults to True This also adds optional parameters '--no-flush' for the user commands. cf issue #307
* pep8 and pyflakes cleanupsPatrick Totzke2012-01-19
|
* fix: misuse of 'usage' command register parameter.Patrick Totzke2012-01-13
| | | | | this corrects an unintentionally used 'usage' parameter to the intended 'help' parameter while decorating seach modes refine and sort commands