Closed elihunter173 closed 2 years ago
This functionality has been implemented with a new command: :DirbufSync
. This command does the same thing as :write
ing the directory buffer, but it also has a -dry-run
flag. When -dry-run
is specified, the buffer isn't synced and instead the appropriate actions are printed in a shell-like format the issue mentioned.
See :help dirbuf-:DirbufSync
for more info
u/sectiu made a comment on Reddit suggesting
I'm thinking of adding a command like
:DirbufDryRun
. It would generate a plan likedirbuf.sync()
does and then pretty print the results, probably using shell-like commands likemv foo bar
. So for example changes like thiswould generate a dry-run output like (possibly re-ordered)
If we add a command like this, I think it also makes sense to add a command like
:DirbufSync
just for symmetry. Maybe dry run could even be an option for:DirbufSync
?