-
Notifications
You must be signed in to change notification settings - Fork 251
feat(commands): add option to open top file even when nested #1218
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
feat(commands): add option to open top file even when nested #1218
Conversation
Nice turnaround! 😀 |
Thanks for your feedback @kmoschcau Unfortunately I haven't been able to follow closely with the development of Neotree recently but is there a place where this file nesting is documented? That would be a good place to add it. I'd be glad if you could add it somewhere @kmoschcau Or we could go to the extreme and actually add a keybind for open with no expand file as default. (Maybe |
I don't think it's necessary to add a new keybind for a variation of the open command @pysan3, I really expect that most people should be customizing their mappings anyhow and this is a pretty minor thing to change. It probably should be the default behavior though, and I think it used to be. It probably just got broken along the way. I don't use nesting so I might not have approved the change and not even noticed that a bug was added. |
Oh, I see. I'll make a new PR then. But my fix is not convenient and if you make it the default, there'll be no way to expand the folded files by default. Is that ok? Also, There are split open, vsplit open etc, and you mean that all should be changed right? |
I think that this is the exact reason why we have a separate action for expand, so that you can expand/close nested files without opening them.
All of the commands that use I do think that the default should be the |
Do you mean
OK, fixed at #1219 I flagged it as a breaking change anyway since it will break the behavior of expand being precedence from the commit was nested files were introduced. |
Sorry, I was quite busy the last days. At a first glance it looks good to me :-D |
Thanks mate ;) My bad It was moved to #1220 and it should be good to go. |
This feature was asked here: #1165 (comment)
Basically to add a keybind to open the top level file of nested files without expanding it.
Could you review this as well? @@Teddytrombone
I mean to have one command that does the following:
Number 2 is not possible right now as far as I know, because the built-in open command will always first expand files with nesting and then open it when you run it again on the same file.
Originally posted by @kmoschcau in #1165 (comment)