diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-03-30 19:28:21 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-03-30 19:49:05 +0900 |
| commit | 31fd207ba232cf419f55cbfede8a90490bd25c5d (patch) | |
| tree | a6b21d989c2444a89beef0b9bcc47c66c514f509 /src/options.go | |
| parent | ba6d1b8772ce5e75ff999dcca21c0fadb689d7bf (diff) | |
| download | fzf-31fd207ba232cf419f55cbfede8a90490bd25c5d.tar.gz | |
Add 'r' flag (raw) for unquoted output
By default, placeholder expressions are automatically quoted to ensure
they are safely passed as arguments to external programs.
The r flag ({r}, {r1}, etc.) disables this behavior, outputting the
evaluated value without quotes.
For example,
echo 'foo bar' | fzf --preview 'echo {} {r}'
The preview command becomes:
echo 'foo bar' foo bar
Since `{r}` expands to unquoted "foo bar", 'foo' and 'bar' are passed
as separate arguments.
**Use with caution** Unquoted output can lead to broken commands.
echo "let's go" | fzf --preview 'echo {r}'
Close #4330
Diffstat (limited to 'src/options.go')
0 files changed, 0 insertions, 0 deletions
