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

How to customize fzf backend and frontend? #140

Open
Gorthog opened this issue Apr 2, 2020 · 0 comments
Open

How to customize fzf backend and frontend? #140

Gorthog opened this issue Apr 2, 2020 · 0 comments

Comments

@Gorthog
Copy link

Gorthog commented Apr 2, 2020

I would like to use bat for file preview and use fd for file search.

I tried the following for fd:

set FZF_FIND_FILE_COMMAND 'fd --color=always --hidden --exclude .git --type f . $dir'
set FZF_DEFAULT_OPTS --ansi

Seems it's being completely ignored? Hidden files are not shown and I do not get syntax highlighting.

Also for using bat i tried this:

set FZF_PREVIEW_FILE_CMD 'bat --color=always --style=numbers,grid --line-range :300'
set FZF_COMPLETE 3

Which is almost working - the only issue is that scrolling works only when mouse pointer is in the marked area. scrolling of the left area (files and folders, not preview) works as expected.
image

When I switch to full screen, file preview scrolling does not work at all, no matter where I place the mouse pointer.

Not sure if this is a bug, or just mis-configuration on my behalf.

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

1 participant