sharkdp/bat

[windows] fzf integration sample from readme does not work

Open

#2,095 opened on 2022年2月28日

GitHub で見る
 (1 comment) (1 reaction) (0 assignees)Rust (1,557 forks)batch import
documentationhelp wantedwindows

Repository metrics

Stars
 (58,889 stars)
PR merge metrics
 (平均マージ 16d 6h) (30d で 11 merged PRs)

説明

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.

コントリビューターガイド