vim-perforce icon indicating copy to clipboard operation
vim-perforce copied to clipboard

When browsing directories with netrw, the "read-only" prompt is being displayed

Open nfvs opened this issue 11 years ago • 2 comments

nfvs avatar Aug 04 '14 11:08 nfvs

The same thing happens with nerdTree. I don't think this is a bug in vim-perforce, since:

  1. The conditions under which the plugin (netrw) decides that a file is read-only are indeed correct (ie: file perms are 0444).
  2. To remedy this, the file viewer plugin (netrw and/or nerdTree, for example), would have to refresh its own view, which might be expensive (at least in the case of nerdTree, which will recursively re-index the top-level folder it's viewing).
  3. A permanent solution would either require cross-plugin compatibility, or some mangling of FS attributes, which would likely break Perforce along with the plugin.

For those reasons, I think it's fair to say that this issue can be closed.

IAXES avatar Apr 07 '17 23:04 IAXES

My thinking was to simply disable the prompt when browsing with netrw.

nfvs avatar Dec 21 '17 10:12 nfvs