From e91f10ab167f10328816fab65fc38370059986f3 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 27 Jan 2025 01:10:08 +0900 Subject: Enhance click-header event * Expose the name of the mouse action as $FZF_KEY * Trigger click-header on mouse up * Enhanced clickable header for `kill` completion --- ADVANCED.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ADVANCED.md') diff --git a/ADVANCED.md b/ADVANCED.md index 2636b15f..69c738a9 100644 --- a/ADVANCED.md +++ b/ADVANCED.md @@ -529,7 +529,10 @@ TRANSFORMER=' # Otherwise, if the query does not end with a space, # restart ripgrep and reload the list elif ! [[ $FZF_QUERY =~ \ $ ]]; then - echo "reload:sleep 0.1; $RG_PREFIX \"${words[0]}\" || true" + pat=${words[0]} + echo "reload:sleep 0.1; $RG_PREFIX \"$pat\" || true" + else + echo search: fi ' fzf --ansi --disabled --query "$INITIAL_QUERY" \ -- cgit v1.2.3