phiresky / ripgrep-all

rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc.
Other
8.21k stars 177 forks source link

"rg: unrecognized flag" message is displayed while searching with rga-fzf if the filename being searched starts with -- #261

Open claimsecond opened 2 weeks ago

claimsecond commented 2 weeks ago

Describe the bug see the Title I'm not really sure if I have to post this bug here, but I hope you can correct me if I have to go with this to ripgrep issue tracker

To Reproduce

  1. Create a file which name starts with -- (e.g. "--sample_file") with arbitrary text content
  2. Run rga-fzf in the directory which this file was created in
  3. See the result

Attach example file: --sample_file.txt

Run command: rga-fzf

Output fzf TUI with message described above

Screenshots screenshot1730551461

Operating System and Version Linux archlinux 6.11.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 22 Oct 2024 18:31:38 +0000 x86_64 GNU/Linux

Output of rga --version ripgrep-all 0.10.6