nerdtree icon indicating copy to clipboard operation
nerdtree copied to clipboard

Why do all my files appear executable when they are not in neovim?

Open zalvarez23 opened this issue 3 years ago • 1 comments

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

image

The files are displayed correctly without the asterisk and in the normal color.

Actual behavior

image

All files appear red and with asterisks.

zalvarez23 avatar May 23 '22 14:05 zalvarez23

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..

mattitk avatar Jun 14 '22 15:06 mattitk

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.

rzvxa avatar Oct 22 '23 16:10 rzvxa