summaryrefslogtreecommitdiff
path: root/alot/commands/thread.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-03-02 18:08:16 +0100
committerAnton Khirnov <anton@khirnov.net>2020-03-02 18:08:16 +0100
commitcd4a20552b33355f790379dcb4275f9105aea1b3 (patch)
treee0b25c9cb78617c7649c64060e4ba55075ae952d /alot/commands/thread.py
parentd035e850d3dde1fbc8d556861f7ef72d581c5506 (diff)
buffers/thread: add focusing on first/last message matching a property
Diffstat (limited to 'alot/commands/thread.py')
-rw-r--r--alot/commands/thread.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index 512db7d4..eb95a9bc 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -931,6 +931,12 @@ class MoveFocusCommand(MoveCommand):
elif self.movement.startswith('previous '):
query = self.movement[9:].strip()
tbuffer.focus_prev_matching(query)
+ elif self.movement.startswith('first '):
+ query = self.movement[5:].strip()
+ tbuffer.focus_first_matching(query)
+ elif self.movement.startswith('last '):
+ query = self.movement[9:].strip()
+ tbuffer.focus_last_matching(query)
elif self.movement.startswith('thread'):
tbuffer.focus_thread_widget()
elif self.movement.startswith('msg'):