sharkdp/bat

[windows] fzf integration sample from readme does not work

Open

#2,095 创建于 2022年2月28日

在 GitHub 查看
 (1 评论) (1 反应) (0 负责人)Rust (1,557 fork)batch import
documentationhelp wantedwindows

仓库指标

Star
 (58,889 star)
PR 合并指标
 (平均合并 16天 6小时) (30 天内合并 11 个 PR)

描述

Hi,

On windows the fzf integration sample does not work out of the box.

https://github.com/sharkdp/bat/blob/7be9485c3690799ee204ec5195172f9e90f49924/README.md?plain=1#L121

❯ fzf --preview 'bat --color=always --style=numbers --line-range=:500 {}'
invalid color specification: always

You have to use " instead of ':

❯ fzf --preview "bat --color=always --style=numbers --line-range=:500 {}"

Maybe you can leave a note for windows users.

贡献者指南