From 857ce90e410c032ec9495e0785d70d660b2a8b4d Mon Sep 17 00:00:00 2001 From: Roland Walker Date: Wed, 25 Feb 2026 05:12:30 -0500 Subject: [PATCH] fzf search: ensure fullscreen with preview on overriding environment variable FZF_DEFAULT_OPTS in part. The mycli documentation describes the fzf search as fullscreen with a preview; these options selectively override parts of FZF_DEFAULT_OPTS from the environment to make sure that is always true. The user's fzf keybindings, colors, and most other options are still taken from FZF_DEFAULT_OPTS if present. --- changelog.md | 1 + mycli/packages/toolkit/fzf.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index edc8eb20..88f0fe3e 100644 --- a/changelog.md +++ b/changelog.md @@ -13,6 +13,7 @@ Bug Fixes --------- * Force a prompt_toolkit refresh after fzf history search to avoid display glitches. * Include `status` footer in paged output. +* Ensure fullscreen in fuzzy history search. 1.57.0 (2026/02/25) diff --git a/mycli/packages/toolkit/fzf.py b/mycli/packages/toolkit/fzf.py index 966fb436..b5a0a8da 100644 --- a/mycli/packages/toolkit/fzf.py +++ b/mycli/packages/toolkit/fzf.py @@ -49,7 +49,8 @@ def search_history(event: KeyPressEvent, incremental: bool = False) -> None: '--scheme=history', '--tiebreak=index', '--bind=ctrl-r:up,alt-r:up', - '--preview-window=down:wrap', + '--preview-window=down:wrap:nohidden', + '--no-height', '--preview="printf \'%s\' {}"', ]