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
Use relative path to find file #837
Comments
you are correct, we should be searching by relative path. You could open a PR if i didn't fix this by the end of the day. |
Current behaviour:
Success: Fail: It appears that the issues with the relative path of symlinks is resolved, be they absolute or relative. Search is successful for file11 and file31 if we C-] into dir1 dir31 or dir32 first. |
This does highlight a problem, which might be in my understanding: we can only search for files/dirs which match a path under cwd, not for files/dirs of a name. Proposal: search matches full file/dir names under cwd, as per PR #837 |
There are still some lingering issues around symlinked rel vs absolute: find-file absolute path: node will be opened, however it will not be focussed |
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 symlinkDocuments -> /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.
The text was updated successfully, but these errors were encountered: