Closed Phantas0s closed 5 months ago
The new environment variable FZF_PREVIEW_LABEL get the value of the preview label, even if it has been updated with an action. It can be useful to track the label of the preview and be able to switch between previews using only one binding.
FZF_PREVIEW_LABEL
For example:
--bind='ctrl-p:transform:[[ $FZF_PREVIEW_LABEL =~ 'status' ]] \ && echo "change-preview(git diff)+change-preview-label([[ diff ]])" \ || echo "change-preview(git status)+change-preview-label([[ status ]])"' \
Merged, thanks!
The new environment variable
FZF_PREVIEW_LABEL
get the value of the preview label, even if it has been updated with an action. It can be useful to track the label of the preview and be able to switch between previews using only one binding.For example: