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

'Rename' action throws an error when the target file already exists #29

Closed
voldikss opened this issue Nov 1, 2019 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@voldikss
Copy link
Contributor

voldikss commented Nov 1, 2019

Hi @weirongxu

Description

Suppose there are two files a.txt and b.txt in one directory and I want to rename a.txt to b.txt. After executing rename action the extension throws an error

[coc.nvim] Error: Target file or directory /home/voldikss/dotfiles/README.md already exists

Expected

  • If the target file already exist
    • If the target file is the source file itself(e.g. rename a.txt to a.txt), do nothing
    • Otherwise show a prompt with an option such as override? and ...
@weirongxu weirongxu added the bug Something isn't working label Nov 1, 2019
@voldikss voldikss changed the title 'Rename` action throws an error when the target file already exists 'Rename' action throws an error when the target file already exists Nov 1, 2019
@weirongxu weirongxu reopened this Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants