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

"go to file" function only looks at current directory, not git root #539

Open
mogest opened this issue Apr 21, 2024 · 0 comments · May be fixed by #540
Open

"go to file" function only looks at current directory, not git root #539

mogest opened this issue Apr 21, 2024 · 0 comments · May be fixed by #540

Comments

@mogest
Copy link

mogest commented Apr 21, 2024

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)

  1. cd into a subdirectory of a git repository
  2. open a PR with comments that are tagged to files
  3. 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.

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

Successfully merging a pull request may close this issue.

1 participant