bat icon indicating copy to clipboard operation
bat copied to clipboard

[windows] fzf integration sample from readme does not work

Open bw1faeh0 opened this issue 2 years ago • 1 comments

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.

bw1faeh0 avatar Feb 28 '22 06:02 bw1faeh0

Thanks. The version with "…" should work just fine on Linux. There are no special shell characters that need escaping here. So we could just change this instead of adding an extra note for Windows users.

sharkdp avatar Feb 28 '22 21:02 sharkdp