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

Use bat for fzf preview #6

Open
natct10 opened this issue Aug 28, 2020 · 0 comments
Open

Use bat for fzf preview #6

natct10 opened this issue Aug 28, 2020 · 0 comments

Comments

@natct10
Copy link

natct10 commented Aug 28, 2020

Hi! Thanks for this great doc!
Do you know that you could also use bat (cat with colors) in your fzf preview!

fzf --preview 'bat --style=numbers --color=always {}'

# I use it with vim to find and open a file on enter, aliased as `vifz`
vim $(fzf --preview 'bat --style=numbers --color=always {} | head -500')

Best

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