sharkdp/bat

[windows] fzf integration sample from readme does not work

Aperta

#2095 aperta il 28 feb 2022

 (1 commento) (1 reazione) (0 assegnatari)Rust (1557 fork)batch import
documentationhelp wantedwindows

Metriche repository

Star
 (58.889 stelle)
Metriche merge PR
 (Merge medio 16g 6h) (11 PR mergiate in 30 g)

Descrizione

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.

Guida contributor