summaryrefslogtreecommitdiff
path: root/alot/completion
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-03-01 21:49:28 +0100
committerAnton Khirnov <anton@khirnov.net>2020-03-01 21:49:28 +0100
commitd035e850d3dde1fbc8d556861f7ef72d581c5506 (patch)
treece691c85f28caac28f32f453484d5ab3b3dff74f /alot/completion
parentc6e3144579bd8310b04d326f4ee32035fe237925 (diff)
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.
Diffstat (limited to 'alot/completion')
-rw-r--r--alot/completion/command.py6
1 files changed, 2 insertions, 4 deletions
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)