From d035e850d3dde1fbc8d556861f7ef72d581c5506 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 1 Mar 2020 21:49:28 +0100 Subject: buffers/thread: make the widget split-window The top part displayes the thread structure, the bottom half the message body. This makes more sense then displaying the message inside the tree structure and makes it easier to implement features such as folding a part of the message body. Drop commands related to folding, since that functionality does not exist anymore. --- alot/completion/command.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'alot/completion') diff --git a/alot/completion/command.py b/alot/completion/command.py index 2ba6d541..a320bf93 100644 --- a/alot/completion/command.py +++ b/alot/completion/command.py @@ -191,8 +191,7 @@ class CommandCompleter(Completer): # thread elif self.mode == 'thread' and cmd == 'save': res = self._pathcompleter.complete(params, localpos) - elif self.mode == 'thread' and cmd in ['fold', 'unfold', - 'togglesource', + elif self.mode == 'thread' and cmd in ['togglesource', 'toggleheaders']: res = self._querycompleter.complete(params, localpos) elif self.mode == 'thread' and cmd in ['tag', 'retag', 'untag', @@ -207,8 +206,7 @@ class CommandCompleter(Completer): if self.mode == 'thread': directions += ['parent', 'first reply', 'last reply', 'next sibling', 'previous sibling', - 'next', 'previous', 'next unfolded', - 'previous unfolded'] + 'next', 'previous' ] localcompleter = StringlistCompleter(directions) res = localcompleter.complete(params, localpos) -- cgit v1.2.3