Skip to content

Commit 91a0d8a

Browse files
committed
Update to prompt-toolkit 0.52.
0.52 supports auto suggestions awslabs#28. This same upgrade was done on SAWS, see pull request from jonathanslenders (author of prompt-toolkit): https://github.com/donnemartin/saws/pull/30/files.
1 parent 91820a4 commit 91a0d8a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

awsshell/app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ def create_buffer(self, completer, history):
9292

9393
def create_application(self, completer, history):
9494
key_bindings_registry = KeyBindingManager(
95+
enable_search=True,
96+
enable_abort_and_exit_bindings=True,
9597
enable_vi_mode=True,
9698
enable_system_bindings=False,
9799
enable_open_in_editor=False).registry
@@ -101,6 +103,7 @@ def create_application(self, completer, history):
101103

102104
return Application(
103105
layout=self.create_layout(),
106+
mouse_support=False,
104107
buffers=buffers,
105108
buffer=self.create_buffer(completer, history),
106109
on_abort=AbortAction.RAISE_EXCEPTION,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
requires = [
99
'awscli>=1.8.9,<2.0.0',
10-
'prompt-toolkit==0.50',
10+
'prompt-toolkit==0.52',
1111
'boto3>=1.2.1',
1212
]
1313

0 commit comments

Comments
 (0)