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

trash-cli error when sending file to trash #341

Open
cristianUrbina opened this issue Jun 4, 2023 · 0 comments
Open

trash-cli error when sending file to trash #341

cristianUrbina opened this issue Jun 4, 2023 · 0 comments

Comments

@cristianUrbina
Copy link

cristianUrbina commented Jun 4, 2023

Hello I don't know if this is caused by misconfiguration but I just installed the plugging using vim-plug the way it says in the readme. I also installed trash-cli by pip3 install trash-cli. The problem is every time a use the keybinding "t" for sending a file to trash I get the following error message (eventhough the file is acctually trashed): Command '(PurePosixPath('/home/cristian/.local/bin/trash'), '--', '/home/cristian/.config/nvim/test.est')' returned non-zero exit status
74. trash: cannot trash non existent '--'
b''

Checking trash-cli man page I see the flag -- is used for deleting files with a name starting with -.
It is annoying seeing the error message each time I trash a file.
Am I doing something wrong?
I got the message to disappear by modifying the following line in file chadtree/chadtree/transitions/delete.py inside _sys_trash function

before
await call(arg0, "--", *map(str, paths), cwd=cwd)

after
await call(arg0, *map(str, paths), cwd=cwd)

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

No branches or pull requests

1 participant