Skip to content

Use relative path to find file #837

Closed
@kuznetsss

Description

@kuznetsss

I think using absolute path in searching for file is wrong because there could be symlinks.

For example in my system I open file from home directory:
~$ nvim Documents/vimwiki/index.md
But Documents is symlink Documents -> /mnt/Data/home_user/Documents
So the real absolute file path is /mnt/Data/home_user/Documents/vimwiki/index.md which nvim-tree tries to find being in /home/user directory. So the file can't be found.

I think it would be better to search file by relative path from nvim's cwd.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions