m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-19 09:03:43 -05:00

Add transform-prompt(...) action

This commit is contained in:
Junegunn Choi
2022-12-31 09:27:11 +09:00
parent e97176b1d7
commit 62c7f59b94
5 changed files with 34 additions and 8 deletions

View File

@@ -56,6 +56,13 @@ CHANGELOG
```sh
curl localhost:6266 -d "change-query:$(date)"
```
- Added `transform-prompt(...)` action for transforming the prompt string
using an external command
```sh
# Press space to change the prompt string using an external command
# (only the first line of the output is taken)
fzf --bind 'space:reload(ls),load:transform-prompt(printf "%s> " "$(date)")'
```
- Added `transform-query(...)` action for transforming the query string using
an external command
```sh