From f9f0014c1633aa284bb0af0cef4c9c316cf5c2d2 Mon Sep 17 00:00:00 2001 From: Stephen Bolton Date: Wed, 4 Feb 2026 03:14:02 -0500 Subject: [PATCH] Fix bug in advanced guide for using fzf as a ripgrep launcher (#4670) With the previous version if you passed in an initial search term that resulted in 0 results you would get rg error output in the prompt. It looks like down the change path the `|| true` clause was added but it also needs to be on the initial query. --- ADVANCED.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ADVANCED.md b/ADVANCED.md index 517902a5..c97d96fd 100644 --- a/ADVANCED.md +++ b/ADVANCED.md @@ -363,7 +363,7 @@ projects, and it will free up memory as you narrow down the results. RG_PREFIX="rg --column --line-number --no-heading --color=always --smart-case " INITIAL_QUERY="${*:-}" fzf --ansi --disabled --query "$INITIAL_QUERY" \ - --bind "start:reload:$RG_PREFIX {q}" \ + --bind "start:reload:$RG_PREFIX {q} || true" \ --bind "change:reload:sleep 0.1; $RG_PREFIX {q} || true" \ --delimiter : \ --preview 'bat --color=always {1} --highlight-line {2}' \