Checklist
Output of fzf --version
0.72.0 (6fefe02)
OS
Shell
Problem / Steps to reproduce
It would be great to have an additional environment variable passed to the child processes, containing the value of the currently selected (/focused?) item.
E.g.: $FZF_CURRENT_ITEM
Motivation
Fzf can do escaping with the {...} style insertions, and I imagine that works great on Linux, however on Windows, cmd is not a great place to be, and powershell requires completely different escaping, for which I did not find any direct solution.
This makes working with complicated item values (such as code, like powershell history attempted to be shown in the preview) quite a hassle on Windows (or at least I did not find any convenient way to handle it)
Funneling values through cmd to powershell or some executable could work, but it could be way easier.
If there were an environment variable, it would easily be usable in any arbitrary shell, without having to worry about escaping
Checklist
man fzf)Output of
fzf --version0.72.0 (6fefe02)
OS
Shell
Problem / Steps to reproduce
It would be great to have an additional environment variable passed to the child processes, containing the value of the currently selected (/focused?) item.
E.g.:
$FZF_CURRENT_ITEMMotivation
Fzf can do escaping with the
{...}style insertions, and I imagine that works great on Linux, however on Windows, cmd is not a great place to be, and powershell requires completely different escaping, for which I did not find any direct solution.This makes working with complicated item values (such as code, like powershell history attempted to be shown in the preview) quite a hassle on Windows (or at least I did not find any convenient way to handle it)
Funneling values through cmd to powershell or some executable could work, but it could be way easier.
If there were an environment variable, it would easily be usable in any arbitrary shell, without having to worry about escaping