diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-01-27 01:10:08 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-01-27 01:10:08 +0900 |
| commit | e91f10ab167f10328816fab65fc38370059986f3 (patch) | |
| tree | f8e7d059843f3a7a81835a888fe29d7588ee4038 /ADVANCED.md | |
| parent | 2c15cd792306119ead573c473c982b6996e11952 (diff) | |
| download | fzf-e91f10ab167f10328816fab65fc38370059986f3.tar.gz | |
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
Diffstat (limited to 'ADVANCED.md')
| -rw-r--r-- | ADVANCED.md | 5 |
1 files changed, 4 insertions, 1 deletions
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" \ |
