Skip to content
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

Auto-escape spaces in file names #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Auto-escape spaces in file names #14

wants to merge 1 commit into from

Conversation

brucedsu
Copy link

I love your RenameFile() function. However there are two problems.
The first one is that some files have spaces in their names. The
solution is to use escape() function to escape those spaces.
The second one is that I created an alias for my rm command. I am using
“rm -i” for rm, so I can not delete the origin file when I am using
MacVim (I don’t know why it doesn’t prompt me to enter “y”). The
solution is to add “-rf”.

I love your RenameFile() function. However there are two problems.
The first one is that some files have spaces in their names. The
solution is to use escape() function to escape those spaces.
The second on is that I created an alias for my rm command. I am using
“rm -i” for rm, so I can not delete the origin file when I am using
MacVim (I don’t know why it doesn’t prompt me to enter “y”). The
solution is to add “-rf”.
@r00k
Copy link
Owner

r00k commented Jul 22, 2014

Thanks for the pull! This is quite helpful.

Question: do you need the -r on the rm command? I don't see why you'd need to specify it for a single file.

@grepsedawk
Copy link

I would say most definitely do not have the -r for safety.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants