Closed tom-bowles closed 5 years ago
Thanks for the report. Seems as the problem is that we get a buffer-file-name
that is nil
in dired buffers which make rg-project-root
fallback to default-directory
.
I don't think your solution will work for all project-root backends though. Which one are you using of find-file-in-project
, projectile
or vc-backend
?
vc-backend
should be the problematic backend here, the others doesn't use the file parameter at all. A bit strange organization of the function actually. Should be easy to fix for the other backends.
Should be fixed by 0ee0e385f5cef96e06cf0f0d1cebfe925aa2c075. Please try it out.
Awesome, yes that fixes it! I'm using projectile, btw.
If you use rg-project when you're in dired, it searches the current directory rather than the project root. I was able to fix this locally by changing:
to:
Great package, BTW - very handy indeed!