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

Options which return files seem to break file selection #10

Open
hmerrilees opened this issue Aug 5, 2020 · 0 comments
Open

Options which return files seem to break file selection #10

hmerrilees opened this issue Aug 5, 2020 · 0 comments

Comments

@hmerrilees
Copy link

:RgRaw --files-with-matches .* in my config folder returns about 8600 results, working as expected. Highlighting a file works fine, but when I use Enter, or any other shortcut to try and open said file, I get an error like this:

No mapping found
Error detected while processing function 119[30]..<SNR>20_callback:
line   21:
Vim(let):E684: list index out of range: 1

Building a custom wrapper without agriculture, passing --files-with-matches to Rg breaks it as well in the same way but only if it is passed in the cmd called to reload when the query is updated. Given that the list index matches which file I select, I guessed that all the arguments that return file names (--file(s?), --files-without-matches) would break it in a similar way, selecting from a list of zero every time, which seems to be the case. This seems to be an issue with fzf itself so I don't know if anything can be done via agriculture, but I thought it was worth a shot given that fzf doesn't normally interface with --file-mat... anyways.

Thanks, this plugin is awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant