Closed showgood closed 6 years ago
Hmm...I guess this won't work under Windows... Maybe need to find another way.
as long as there is mv
command on the OS, it should be fine.
This package already requires unzip
command, so it's not too ridiculous
to require mv
available.
also most emacs user already have something like cygwin installed, this is not really an issue. Many emacs packages require that kind of dependency.
I would also imagine whoever interested in this package would be mainly mac/linux user, if they do use windows, they should have no problem with CLI tools given the purpose of this package.
Given all this being said, I understood if you still have concern and don't want to take this PR.
That sounds reasonable. But you still need to deal with the path with spaces. e.g.:(shell-command (format "mv '%s' '%s'" ...))
good point. I have updated the PR.
when I ran ~tldr~ for the first time, I got error from emacs:
Reason is because that's the behavior for ~rename-file~ according to elisp doc:
basically after this rename-file call, we have the directory:
instead of
didn't find an easy way to fix in elisp, but using
mv
would fix it.