-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Expand, modify, and create nested directories #26
Comments
First of all, thank you so much for this plugin. It's the best plugin for file navigation I've ever use (I was using dirvish for years and now your plugin is just so much better, omg I love it) One thing I miss from Dirvish is creating multiple files at once, I think would be cool to have this feature as well. I don't know if here is the best place to suggest this, but I think its related.
When
or something like:
Let me know if it's better to suggest this on a separated issue instead of here. Thank you so much again! |
Could you open a separate issue? I think this is a super interesting idea! |
now also with nvim column you can also have some nice folds in the left to really explain you are expanding inside a directory |
This is closely related to #3 but slightly different.
Sometimes I would like to be able to use Dirbuf to easily move a bunch of files from a subdirectory to my current directory. Ideally I'd like to do this by just expanding the subdirectory within my current dirbuf, deleting the leading path, and saving to move all the files I changed into my current directory.
I want it to feel like folding, where you're just "unfolding" a directory to expand it and folding it to close it. I want to be able to expand a directory, move some files to my current directory, and close the directory and have all the files I didn't move get hidden again and all the files I moved to stay. Ideally it should just work how you think it does.
For a concrete example in pseudo-dirbuf, consider you're in a directory containing only the directory
foo/
which itself containsbar
andbaz
. You open the directory and seeYou "unfold"
foo/
and seeThen you make the following edit
Then you close
foo
to getUpon saving, this should result in the syncing plan being
mv 'foo/bar' 'bar'
.Open Questions
<Plug>(dirbuf_expand_directory)
and ``(dirbuf_close_directory)` would be find.the/directory/
). The issue there is both the buffer has to be legal (or maybe we ignore illegal lines?) and we still have to track the files in that buffer. For example, suppose someone unfolds a directory, moves a file into that directory, re-folds the directory, and then saves. Obviously they expect the file to be moved into that directory but if we don't track the files in that re-folded directory then we'll just delete that file which sucks.The text was updated successfully, but these errors were encountered: