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

Create directories in the fuzzy search

Open TeoDev1611 opened this issue 3 years ago • 9 comments

Is your feature request related to a problem? Please describe. How create directorys in clap

Describe the solution you'd like Create a command for add a directory or when i am writing create the directory style the file for example an_example_dir/

Describe alternatives you've considered Or create a simple command or mapping if exist write in the documentation

TeoDev1611 avatar Apr 07 '21 20:04 TeoDev1611

Which provider are you referring to? Basically, you can add the action support in that provider https://github.com/liuchengxu/vim-clap/issues/662#issuecomment-810836289 or enhance the current behavior.

liuchengxu avatar Apr 08 '21 00:04 liuchengxu

Filer I think? It's true that it would be convenient to be able to create a directory like this: Screenshot from 2021-04-07 22-07-09

romgrk avatar Apr 08 '21 02:04 romgrk

It's technically not hard for filer, but needs to come up with a complete and decent UX. A simple edit is enough for creating a file, but not sure it's also good for creating a directory.

liuchengxu avatar Apr 08 '21 02:04 liuchengxu

I would think something like create the directory & switch to it (staying in filer) would be interesting.

romgrk avatar Apr 08 '21 12:04 romgrk

Yes this is the idea, I want make vim-clap my first file explorer

TeoDev1611 avatar Apr 08 '21 13:04 TeoDev1611

Not sure I understand it correctly, you mean switching to the newly created directory? but it's empty, you can only create a new file under that directory.

liuchengxu avatar Apr 08 '21 13:04 liuchengxu

Apologies if you do not understand me English is not my main language. The idea is to create directories like some file explorers do for example example_dir/and leave it in the same directory and then open the directory. Personally I think that entering the created directory is not necessary

TeoDev1611 avatar Apr 08 '21 13:04 TeoDev1611

No worries, I'm also not a native English speaker :(.

You have to understand that filer is kind of limited at the moment compared to the traditional file explorer like nerdtree, for it can only show the top level of a directory and can't show all the items recursively in tree view. example_dir/ can just be created accordingly, but I'm unsure what to do next.

liuchengxu avatar Apr 08 '21 14:04 liuchengxu

The idea after create the dir can rename the dir and the files move etc.

TeoDev1611 avatar Apr 09 '21 17:04 TeoDev1611