[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let FZF_PREVIEW_COMMAND take over for binary files too #1528

Open
5 tasks done
PlasmaHH opened this issue Mar 1, 2024 · 1 comment
Open
5 tasks done

Let FZF_PREVIEW_COMMAND take over for binary files too #1528

PlasmaHH opened this issue Mar 1, 2024 · 1 comment

Comments

@PlasmaHH
Copy link
PlasmaHH commented Mar 1, 2024

Using fzf on the command line over the years I have put me together some fzf_preview script that handles various kinds of binary files too (e.g. images through catimg, compressed files by listing directory, packages by content etc.)

However the fzf.vim preview.sh contains a mime type check and if it contains binary, it will not forward things to the configured command.

since the original command line fzf afaik does not handle binary any special it would be most useful if the preview script exist that it is unconditionally forwarded to that in the preview.sh, I did that for myself by wrapping the mime type check in preview.sh with a -z check for the variable.

@junegunn
Copy link
Owner

Can you open a pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants