Skip to content

Commit

Permalink
Backport PR #14026 on branch 8.12.x (Switch default shortcuts for cyc…
Browse files Browse the repository at this point in the history
…ling auto-suggestions) (#14043)

Backport PR #14026: Switch default shortcuts for cycling
auto-suggestions
  • Loading branch information
Carreau committed Apr 28, 2023
2 parents 887da03 + b083def commit 930b094
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions IPython/terminal/shortcuts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,28 +229,28 @@ def create_identifier(handler: Callable):
),
Binding(
auto_suggest.swap_autosuggestion_up,
["up"],
["c-up"],
"navigable_suggestions"
" & ~has_line_above"
" & has_suggestion"
" & default_buffer_focused",
),
Binding(
auto_suggest.swap_autosuggestion_down,
["down"],
["c-down"],
"navigable_suggestions"
" & ~has_line_below"
" & has_suggestion"
" & default_buffer_focused",
),
Binding(
auto_suggest.up_and_update_hint,
["up"],
["c-up"],
"has_line_above & navigable_suggestions & default_buffer_focused",
),
Binding(
auto_suggest.down_and_update_hint,
["down"],
["c-down"],
"has_line_below & navigable_suggestions & default_buffer_focused",
),
Binding(
Expand All @@ -265,8 +265,8 @@ def create_identifier(handler: Callable):
),
Binding(
auto_suggest.accept_and_keep_cursor,
["c-down"],
"has_suggestion & default_buffer_focused & emacs_like_insert_mode",
["escape", "down"],
"has_suggestion & default_buffer_focused & emacs_insert_mode",
),
Binding(
auto_suggest.backspace_and_resume_hint,
Expand Down

0 comments on commit 930b094

Please sign in to comment.