"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)
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 repositorygf
to try to go to one of the filesTell us your environment
MacOS, neovim 0.9.5, latest octo.nvim
Anything else we need to know?
PR incoming.