-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add g:NERDTreeFindResolveSymlinks for NERDTreeFind #1412
base: master
Are you sure you want to change the base?
Add g:NERDTreeFindResolveSymlinks for NERDTreeFind #1412
Conversation
Hello, First off thank you for your contribution. It seems like a good idea but I'm not sure if using a flag for it is the best implementation, I personally think having 2 commands like There are also #1404 and issues mentioned there, which are somewhat related to this, Take a look at them if have the time, it would be great if we could work toward having better control over how NerdTree is treating the symlinks in general. For example, having the |
Please, add any solution. Because current NERDTreeFind blocking my workflow. |
It is definitely on the roadmap, I usually don't go overboard with symlinks but I know a lot of people and projects that do. So keep an eye out for the next few updates. Until then feel free to use the patch you've submitted or get on board to help with adding an option for symlink resolution in general, Either way, I'm going to make sure that you get credited for this PR no matter what(even if the proposed option doesn't get in). Have a great day! |
@rzvxa up |
@EvgeniyBlinov Sorry for it getting a bit delayed, I just want to let you know I haven't forgotten this issue; I'm currently just a bit swamped with a deadline. I'll try to get it into upstream by the next week end, I might need a few more days I promise it won't be much longer than that. Please excuse me for this inconvenience. |
Just to be clear, I didn't merge it yet, since we have to make sure it wouldn't break anything. I'm not too keen on breaking anyone's workflow since I want you to know that I truly appreciate what you've done here, I hope you understand the reasoning behind my decision. |
@EvgeniyBlinov I'm extremely sorry for the delay, I'll start working on it today and ping you when there is a working PR so you can test and review the changes. |
@EvgeniyBlinov This doesn't work, Vim always resolves the path on expansion, Are you sure your changes are creating the desired effect? I can't reproduce what you've described here. |
NerdTree open in HOME directory. But the expected behavior is opening in the current directory |
Have you had any chance of fixing it by not resolving the path? I've tried your proposed change in this PR with your exact example, But it doesn't solve the issue. The problem is that Vim's behavior for symlinks is to resolve the path, So in many places when you pass in a symlink it tries to expand it to the real path internally, and one way or another it would get resolved somewhere(it can happen in many different operations even a simple thing like To truly solve this issue we have to stop using internal functions like Does the proposed change in this PR solve your issue? because I couldn't get the desired effect you've mentioned. If it does, can you share a short video of it with me? What is your Vim version? There might be something different between our setups. |
Dockerfile
vim version
Commands
Commands in container
|
Awesome, It is one of the more elaborate reproduction steps I've ever seen here. |
Any ideas? |
UP |
Description of Changes
Add g:NERDTreeFindResolveSymlinks for NERDTreeFind
" DEFAULT value | open NERDTreeFind in symlink resolved dir
let g:NERDTreeFindResolveSymlinks = 1
" open NERDTreeFind in file current dir
let g:NERDTreeFindResolveSymlinks = 0
New Version Info