-
-
Notifications
You must be signed in to change notification settings - Fork 626
feat: allow changing root to dir #2779
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
Conversation
Also, is there a reason why it doesn't allow changing directory if it's under cwd? I kinda want to remove it nvim-tree.lua/lua/nvim-tree.lua Lines 56 to 59 in 385514a
|
Could you please describe what problem does it solve? |
Changing root to dir? Well, first of all, I think it simply makes sense and nowhere in the docs does it say that only providing filename is allowed. I am using this api method directly and want to set nvim-tree root to a directory. Regarding setting path under cwd - my problem is following. I made my own command Yes, I know I can use |
I have a similar use case: I like the change, however we can't make it at this point: it will break open, find_file etc. which pass a file path. Could you use the |
I am not sure how it would break the existing API. It calls to |
Firstly, please accept my apologies; I was confused and thought this method was private, not API.
Sorry mate, I'm not willing to take the risk. This area functionality is very fragile and has broken frequently in the past. I'm still not quite sure what the issue is; I'm not experiencing any issues changing to a directory. Please provide a replicator and instructions on how to reproduce problem behaviour as a bug report |
I'm still keen to get this one in, however it's been inactive for a while. Please reopen when you'd like to continue @sarmong |
No description provided.