ldelossa / nvim-ide

A full featured IDE layer for Neovim. Heavily inspired by VSCode.
MIT License
826 stars 27 forks source link

Explorer: When you create a file, if cursor is over a non-expanded directory, it should create the file in the parent directory #90

Closed mrjones2014 closed 1 year ago

mrjones2014 commented 1 year ago

The current behavior is somewhat confusing.

When you cursor is over a directory, and you create a new file, if the directory is not expanded, the new file should be created with the parent node as the root.

If the directory under cursor is expanded, only then should it use that directory as the root for the new file.

ldelossa commented 1 year ago

I'm not sure I agree.

To me, its confusing when you have this directory structure:

/a
  /b

With no files, and now you want to create a file in 'b'. You must expand the empty directory before creating the file, instead of just creating the file ontop of the directory.

mrjones2014 commented 1 year ago

it could be an option.

ldelossa commented 1 year ago

Lets keep this open for now, and see if others come to the same determination. I don't want to option sprawl.

mrjones2014 commented 1 year ago

I don't use the plugin anymore. Feel free to reopen if the issue persists.