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

nknown option: change:reload:rga --files-with-matches {q} #263

Open
rccclr opened this issue Nov 23, 2024 · 2 comments
Open

nknown option: change:reload:rga --files-with-matches {q} #263

rccclr opened this issue Nov 23, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@rccclr
Copy link

rccclr commented Nov 23, 2024

Describe the bug
Error when execute your sample "search.bat"

To Reproduce

Sample search.bat your site

@echo off
setlocal

set RG_PREFIX=rga --files-with-matches
set FZF_DEFAULT_COMMAND=%RG_PREFIX% %1
for /f "delims=" %%i in ('fzf --sort --preview "rga --pretty --context 5 {q} {}" --phony -q %1 --bind "change:reload:%RG_PREFIX% {q}" --preview-window="70%:wrap"') do (
set FILE=%%i
)

if not "%FILE%" == "" (
echo Opening %FILE%
start "" "%FILE%"
) else (
echo No file selected.
)

endlocal

Output
When execute search.bat:
unknown option: change:reload:rga --files-with-matches {q}

Operating System and Version
Windows

Output of rga --version
ripgrep-all 0.10.6

@rccclr rccclr added the bug Something isn't working label Nov 23, 2024
@lafrenierejm
Copy link
Contributor

What version of fzf are you using? fzf --version should print this.

@rccclr
Copy link
Author

rccclr commented Nov 25, 2024

Hello, fzf --version:

0.56.3 (add1aec)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants