Skip to content
Myr

Update transform-query examples for zsh

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Close #3107

authored by Junegunn Choi · committed by Junegunn Choi · parent d649f5d · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:CHANGELOG.md+3 added-3 removed
58 unmodified lines
59 - Added `transform-query(...)` action for transforming the query string using60 an external command61 ```sh62 # Press space to convert the query to uppercase letters63 fzf --bind 'space:transform-query(tr [:lower:] [:upper:] <<< {q})'63 fzf --bind 'space:transform-query(tr "[:lower:]" "[:upper:]" <<< {q})'6465 # Bind it to 'change' event for automatic conversion66 fzf --bind 'change:transform-query(tr [:lower:] [:upper:] <<< {q})'66 fzf --bind 'change:transform-query(tr "[:lower:]" "[:upper:]" <<< {q})'6768 # Can only type numbers69 fzf --bind 'change:transform-query(sed 's/[^0-9]//g' <<< {q})'69 fzf --bind 'change:transform-query(sed "s/[^0-9]//g" <<< {q})'70 ```71 - `put` action can optionally take an argument string72 ```sh73 # a will put 'alpha' on the prompt, ctrl-b will put 'bravo'
1412 unmodified lines