summaryrefslogtreecommitdiff
path: root/alot/commands/thread.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-04-25 16:46:12 +0200
committerAnton Khirnov <anton@khirnov.net>2020-04-25 16:46:12 +0200
commit81dfe5b12bb8fce168c097ef2e1eeef295a884f2 (patch)
tree725f45d12f320da0e7f985a2b87658d57f33c8fd /alot/commands/thread.py
parentd549a4dc743f3e8044473bd7856108a1827b3884 (diff)
commands/thread: add a command for toggling focus between tree/msg
Diffstat (limited to 'alot/commands/thread.py')
-rw-r--r--alot/commands/thread.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index 4fdc5c27..344cf35e 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -966,6 +966,8 @@ class MoveFocusCommand(MoveCommand):
tbuffer.focus_thread_widget()
elif self.movement.startswith('msg'):
tbuffer.focus_msg_widget()
+ elif self.movement.startswith('toggle'):
+ tbuffer.focus_toggle()
else:
MoveCommand.apply(self, ui)
# TODO add 'next matching' if threadbuffer stores the original query