Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b108e33

Browse files
committed
Add delete binding for clearing auto-suggestion
1 parent 4db24c3 commit b108e33

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

IPython/terminal/shortcuts/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,11 @@ def create_identifier(handler: Callable):
207207
["escape"],
208208
"has_suggestion & default_buffer_focused & emacs_insert_mode",
209209
),
210+
Binding(
211+
auto_suggest.discard,
212+
["delete"],
213+
"has_suggestion & default_buffer_focused & emacs_insert_mode",
214+
),
210215
Binding(
211216
auto_suggest.swap_autosuggestion_up,
212217
["up"],

0 commit comments

Comments
 (0)