From 6c0ca4a64a4e2f8697dfa830dcae56c1d7ddca51 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 30 Jan 2025 00:50:46 +0900 Subject: Add --no-input to hide the input section (#4210) Close #2890 Close #1396 You can't type in queries in this mode, and the only way to trigger an fzf search is to use `search(...)` action. # Click header to trigger search fzf --header '[src] [test]' --no-input --layout reverse \ --header-border bottom --input-border \ --bind 'click-header:transform-search:echo ${FZF_CLICK_HEADER_WORD:1:-1}' --- src/tui/tui.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/tui/tui.go') diff --git a/src/tui/tui.go b/src/tui/tui.go index fe8fc243..0c778ad6 100644 --- a/src/tui/tui.go +++ b/src/tui/tui.go @@ -615,6 +615,7 @@ type Renderer interface { NeedScrollbarRedraw() bool ShouldEmitResizeEvent() bool Bell() + HideCursor() GetChar() Event @@ -662,6 +663,7 @@ type FullscreenRenderer struct { forceBlack bool prevDownTime time.Time clicks [][2]int + showCursor bool } func NewFullscreenRenderer(theme *ColorTheme, forceBlack bool, mouse bool) Renderer { @@ -670,7 +672,8 @@ func NewFullscreenRenderer(theme *ColorTheme, forceBlack bool, mouse bool) Rende mouse: mouse, forceBlack: forceBlack, prevDownTime: time.Unix(0, 0), - clicks: [][2]int{}} + clicks: [][2]int{}, + showCursor: true} return r } -- cgit v1.2.3