-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Incorrect file copied message when a file was actually not copy #37
Incorrect file copied message when a file was actually not copy #37
Comments
When copying a file outside the original directory (cwd) the file is not copied, this is expected, but the user still gets the following message: [file] has been copied! This is incorrect, this commit fixes the issue by verifying the result status from the copy operation and prints the appropriate message '[file] has been copied!' or '[file] has not been copied' depending on whether the operation succeeded or not.
I've just tried it. For me it works so long as the target folder exists. Could you please confirm that? If that's the case, then the issue would then be |
@fdschmidt93 That is correct, if the folder exists, the file is successfully copied. I agree, this part needs to be handled in plenary with your pull request, you beat me to it :), but in my opinion, we should still make sure we print the correct message to the user, essentially I think we need both pull requests. |
When copying a file outside the original directory (cwd) the file is not copied, this is expected, but the user still gets the following message: [file] has been copied! This is incorrect, this commit fixes the issue by verifying the result status from the copy operation and prints the appropriate message '[file] has been copied!' or '[file] has not been copied' depending on whether the operation succeeded or not.
When copying a file outside the original directory (cwd) the file is not copied, this is expected, but the user still gets the following message: [file] has been copied! This is incorrect, this commit fixes the issue by verifying the result status from the copy operation and prints the appropriate message '[file] has been copied!' or '[file] has not been copied' depending on whether the operation succeeded or not.
When copying a file outside the original directory (cwd) the file is not copied, this is expected, but the user still gets the following message: [file] has been copied! This is incorrect, this commit fixes the issue by verifying the result status from the copy operation and prints the appropriate message '[file] has been copied!' or '[file] has not been copied' depending on whether the operation succeeded or not.
This reverts commit 7500d63.
When copying a file outside the original directory (cwd) the file is not copied, this is expected, but the user still gets the following message: [file] has been copied! This is incorrect, this commit fixes the issue by verifying the result status from the copy operation and prints the appropriate message '[file] has been copied!' or '[file] has not been copied' depending on whether the operation succeeded or not.
When copying a file outside the original directory (cwd) the file is not copied, this is expected, but the user still gets the following message: [file] has been copied! This is incorrect, this commit fixes the issue by verifying the result status from the copy operation and prints the appropriate message '[file] has been copied!' or '[file] has not been copied' depending on whether the operation succeeded or not.
Description
Currently telescope-file-browser.nvim does not support copying a file to another directory other than cwd.
If a user tries to copy a file to another directory, the file is not copied, but the user gets the following message:
/example/path/to/file has been copied!
Which is an incorrect and misleading message, the file in fact was never copied.
Neovim version
Operating system and version
Ubuntu 20.04
Steps to reproduce
Expected behavior
When copying a file outside the original directory, the message to the user should be: "[file] has not been copied".
Actual behavior
When copying a file outside the original directory, the message currently is: "[file] has been copied!", which is incorrect.
Minimal config
The text was updated successfully, but these errors were encountered: