junegunn / junegunn/fzf.vim

Let FZF_PREVIEW_COMMAND take over for binary files too

Open
#1,528 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
10.3k
Forks
608
Avg merge
5d 8h
Merged PRs (30d)
2

Description

- [x] I have fzf 0.30.0 or above
- [x] I have read through https://github.com/junegunn/fzf.vim/blob/master/README.md
- [x] I have read through https://github.com/junegunn/fzf/blob/master/README-VIM.md
- [x] I have read through the manual page of fzf (`man fzf`)
- [x] I have searched through the existing issues

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.