diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-03-02 18:08:16 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-03-02 18:08:16 +0100 |
commit | cd4a20552b33355f790379dcb4275f9105aea1b3 (patch) | |
tree | e0b25c9cb78617c7649c64060e4ba55075ae952d /alot/commands/thread.py | |
parent | d035e850d3dde1fbc8d556861f7ef72d581c5506 (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.py | 6 |
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'): |