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

The gf command fails to navigate to files with parent directory references #9439

Open
peterdanwan opened this issue Jan 15, 2025 · 0 comments

Comments

@peterdanwan
Copy link

peterdanwan commented Jan 15, 2025

Describe the bug

The gf (goto file) command in VSCode's Vim extension fails to navigate to files that reference a parent directory(../). When trying to navigate to files with relative paths that go up a directory, the command does not work as expected.

File paths with parent directory references can be opened using Ctrl + Left Click but not with the gf command.

To Reproduce

Steps to reproduce the behavior (please watch the video - the video player options might cover VSCode's status bar):

2025-01-14.19-39-02.mp4

Expected behavior

The gf command works with parent directory paths (e.g., a path like ../../some-folder/file.c should work).

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.29.0
  • VSCode version: 1.96.3
  • OS: Windows_NT x64 10.0.26100
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