-
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
Files do not appear in the folder. #526
Comments
Update: This only happens after I press "x" on folder. |
+1 |
+1 the same problem |
+1 Same problem |
1 similar comment
+1 Same problem |
Duplicate: #519 |
The problem still exists. |
I experience this bug when I go up twice from a directory that is a single item in its parent directory. For example (as shown on OP's screenshot), I open vim from directory controllers/admin. Then I press 'u'. And then I press 'u' again. At this step I see the directory structure like on the screenshot (>controllers/admin). And I'm not able to view the contents of controllers/admin even if I press 'R' or 'r'. #519 is a bit different issue. I have updated to the latest version at the moment. |
mkdir ttt Inside vim: |
I can now replicate this bug, and I believe it to be confirmed. Replicate with these steps:
You can do this in the NERDTree repository itself by making the root Bug confirmed. |
Look at the |
Hey, @PhilRunninger, I think I've got this one. A possible duplicate is issue #547. I also have a fix in progress. I believe the problem can be captured in a few words as follows: When you make a directory that belongs to a cascade the NERDTree root, pressing The rendering logic never reaches the open node at the bottom of the cascade, and the children there cannot be displayed because their ancestors are "closed" from the point of view of the NERDTree. This also explains why the open/closed status indicator ( |
Issues preservim#547 and preservim#526 reported a problem with the "open()" method in the "TreeDirNode" class. Specifically, opening a cascade in the NERDTree will perform the opening operation on the tail of the cascade. This is a problem when other operations (such as the "u" mapping) close intermediate cascaded directories, which causes opening the tail to have no effect (other than toggling the arrow). Here, the "open()" method was modified to open all directories in a cascade whenever the tail is opened. This is the only reasonable fix for this type of problem. Fixes preservim#547 and fixes preservim#526.
ANNOUNCEMENT: Everyone experiencing this bug can try the fix in pull request #720. It should repair this problem without any side effects. The code is currently under review. |
Works for me, thx. |
Hello. Files do not hidden, but when I open folder it looks empty. When I explore empty dir, files displayed (right column on attached image). After reloading vim files are displayed.
The text was updated successfully, but these errors were encountered: