Skip to content

Use bat for fzf preview #6

@natct10

Description

@natct10

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions