sharkdp/bat

[windows] fzf integration sample from readme does not work

Open

#2.095 geöffnet am 28. Feb. 2022

Auf GitHub ansehen
 (1 Kommentar) (1 Reaktion) (0 zugewiesene Personen)Rust (1.557 Forks)batch import
documentationhelp wantedwindows

Repository-Metriken

Stars
 (58.889 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 7h 31m) (10 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide