Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[windows] fzf integration sample from readme does not work #2095

Open
bw1faeh0 opened this issue Feb 28, 2022 · 1 comment
Open

[windows] fzf integration sample from readme does not work #2095

bw1faeh0 opened this issue Feb 28, 2022 · 1 comment
Labels
documentation help wanted Extra attention is needed windows Issue is related to the Windows build of bat

Comments

@bw1faeh0
Copy link

Hi,

On windows the fzf integration sample does not work out of the box.

bat/README.md

Line 121 in 7be9485

fzf --preview 'bat --color=always --style=numbers --line-range=:500 {}'

❯ 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.

@Enselic Enselic added documentation windows Issue is related to the Windows build of bat labels Feb 28, 2022
@sharkdp
Copy link
Owner

sharkdp commented Feb 28, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation help wanted Extra attention is needed windows Issue is related to the Windows build of bat
Projects
None yet
Development

No branches or pull requests

3 participants