nerdtree
nerdtree copied to clipboard
Why do all my files appear executable when they are not in neovim?
Neovim version (nvim -v)
NVIM v0.8.0-dev+169-ge50b1fe60
Vim (not Nvim) behaves the same?
vim 8.2
Operating system/version
12.3.1 (21E258)
Terminal name/version
iterminal
$TERM environment variable
--
Installation
..
How to reproduce the issue
...
Expected behavior
The files are displayed correctly without the asterisk and in the normal color.
Actual behavior
All files appear red and with asterisks.
I wrote a comment about filesystem or .zip being broken and neovim fixing the issue by itself. It was not the case. I could not replicate the behaviour. Can you please "ls -lha" in your .js folder to show what the permissions are on the files? The thing happens when they are market as executables in the filesystem, which happens sometimes when you extract Windows files to Mac/Linux. Trying to to think what the problem might be..
Since the author of the issue hasn't replayed in a long time I'm going to close this issue.
PS: I've experienced this problem when moving files from a Windows machine to Linux as mentioned by @mattitk, I think there are some compatibility issues with the way NTFS handles the user access to to files.
If that's the case try to chmod them with the right permissions. NERDTree is just reflecting the current permissions of the file. use something like chmod a-x file.js or chmod -R a-o parent_directory.