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

Fail to open the file of the search result when the working directory change #344

Open
vds2212 opened this issue Feb 11, 2025 · 0 comments

Comments

@vds2212
Copy link

vds2212 commented Feb 11, 2025

I'm using vim-rooter that change the working directory of Vim when I open a file.

Suppose I have the following hierarchy

Root

  • .gitignore
  • file a
  • folder b
    • .gitignore
    • file c

If I do a query in the root folder that find occurence to

  • file a
  • folder b/file b

I can visit file a
I can visit file b

But when I visit file b the working directory change to folder b and I can't visit file a anymore (the link is broken because it is relative to root and the working directory has changed)

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