summaryrefslogtreecommitdiff
path: root/alot/command.py
diff options
context:
space:
mode:
authorpazz <patricktotzke@gmail.com>2011-08-12 22:26:42 +0100
committerpazz <patricktotzke@gmail.com>2011-08-12 22:26:42 +0100
commit0265e77c4f3716d0e6376e0b1e50655ee349d47c (patch)
tree0fe06b2675398d780c297af56bb55e00a4216e94 /alot/command.py
parentf9c4d78d015131b318b992399c167d998030f77b (diff)
open matching messages only. issue #34
Diffstat (limited to 'alot/command.py')
-rw-r--r--alot/command.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/alot/command.py b/alot/command.py
index 56cdd591..55ab9c51 100644
--- a/alot/command.py
+++ b/alot/command.py
@@ -73,10 +73,12 @@ class OpenThreadCommand(Command):
def apply(self, ui):
if not self.thread:
self.thread = ui.current_buffer.get_selected_thread()
+ query = ui.current_buffer.querystring
ui.logger.info('open thread view for %s' % self.thread)
sb = buffer.ThreadBuffer(ui, self.thread)
ui.buffer_open(sb)
+ sb.unfold_matching(query)
class SearchCommand(Command):