"go to file" function only looks at current directory, not git root
mogest opened this issue · comments
Issue Description
"go to file" function only looks at current directory, not git root
Type: bug report
Describe what happened (or what feature you want)
When pressing gf
while on a comment tagged to a file/line in a PR, with the current working directory not being at the root of the git repository, an error is returned.
Describe what you expected to happen
The file would be found and gf
would take the user to the file.
How to reproduce it (as minimally and precisely as possible)
cd
into a subdirectory of a git repository- open a PR with comments that are tagged to files
- press
gf
to try to go to one of the files
Tell us your environment
MacOS, neovim 0.9.5, latest octo.nvim
Anything else we need to know?
PR incoming.