diff --git a/changelog.md b/changelog.md index 7d94df7b..6ea7753b 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,7 @@ Upcoming Release (TBD) Features -------- * Make control-r reverse search style configurable. +* Make fzf search key bindings more compatible with traditional isearch. Internal diff --git a/mycli/packages/toolkit/fzf.py b/mycli/packages/toolkit/fzf.py index 68caa9c1..35211460 100644 --- a/mycli/packages/toolkit/fzf.py +++ b/mycli/packages/toolkit/fzf.py @@ -47,7 +47,7 @@ def search_history(event: KeyPressEvent, incremental: bool = False) -> None: result = fzf.prompt( formatted_history_items, - fzf_options="--scheme=history --tiebreak=index --preview-window=down:wrap --preview=\"printf '%s' {}\"", + fzf_options="--scheme=history --tiebreak=index --bind ctrl-r:up,alt-r:up --preview-window=down:wrap --preview=\"printf '%s' {}\"", ) if result: