sharkdp/bat

[windows] fzf integration sample from readme does not work

開放

#2,095 建立於 2022年2月28日

 (1 則留言) (1 個反應) (0 位負責人)Rust (1,557 個分叉)batch import
documentationhelp wantedwindows

倉庫指標

星標
 (58,889 顆星)
PR 合併指標
 (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.

貢獻者指南