Skip to content

Commit 06c3cf4

Browse files
authored
Merge pull request #1340 from dbcli/RW/limit-control-r-emacs-mode
Limit Alt-R to Emacs mode
2 parents 70bd289 + 8a66a91 commit 06c3cf4

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

changelog.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
Upcoming (TBD)
22
==============
33

4+
Bug Fixes
5+
--------
6+
* Limit Alt-R bindings to Emacs mode.
7+
8+
49
Internal
510
--------
6-
* Only read "my" configuration files once, rather than once per call to read_my_cnf_files
11+
* Only read "my" configuration files once, rather than once per call to read_my_cnf_files.
712

813

914
1.38.3 (2025/08/21)

mycli/key_bindings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def _(event: KeyPressEvent) -> None:
150150
else:
151151
search_history(event)
152152

153-
@kb.add("escape", "r", filter=control_is_searchable)
153+
@kb.add("escape", "r", filter=control_is_searchable & emacs_mode)
154154
def _(event: KeyPressEvent) -> None:
155155
"""Search history using fzf when available."""
156156
_logger.debug("Detected <alt-r> key.")

0 commit comments

Comments
 (0)