We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 869e4fa commit 1246debCopy full SHA for 1246deb
ptpython/key_bindings.py
@@ -10,6 +10,7 @@
10
vi_insert_mode,
11
)
12
from prompt_toolkit.key_binding import KeyBindings
13
+from prompt_toolkit.key_binding.bindings.named_commands import get_by_name
14
from prompt_toolkit.keys import Keys
15
16
from .utils import document_is_multiline_python
@@ -61,6 +62,10 @@ def _(event):
61
62
if python_input.enable_system_bindings:
63
event.app.suspend_to_background()
64
65
+ # Delete word before cursor, but use all Python symbols as separators
66
+ # (WORD=False).
67
+ handle("c-w")(get_by_name("backward-kill-word"))
68
+
69
@handle("f2")
70
def _(event):
71
"""
0 commit comments