-
Notifications
You must be signed in to change notification settings - Fork 113
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
Support integration with xplr
by allowing to print paths selected for deletion
#87
Comments
xplr
by allowing to print selected paths
Nice indeed, thanks! Do you mean it would be nice to print paths selected for deletion upon quitting |
Yes. Instead of deleting, it can return the paths via stdout, and then other tools can decide what to do with them. |
xplr
by allowing to print selected pathsxplr
by allowing to print paths selected for deletion
Maybe a command line option, something like |
This should be resolved with Only for the users who quit intentionally (maybe because they changed their mind) will the new behaviour be surprising as they now see selected paths that they never care about. Lastly, in case deletion fails due to permission errors for instance, paths will be printed as well as they would remain in the pane. For these users it might also be interesting to see them as they can try again by hand with This is the reasoning for printing remaining paths by default, currently without a way to turn that off. |
Thanks a lot. Really well thought out and creative solution 👍 |
Hi, I tried integrating, but there's some issue.
|
A great point, sorry for the oversight. In version 2.13.1 it's implemented so that the TUI wants to write to stderr, allowing the redirections of stdout to catch the selected files. I hope this works now :). |
Works now. Thanks.
|
Hi, Nice tool. I have added an integration hack with xplr.
However, for better integration experience, is there a way to print the selected paths? This would allow migration of the
dua-cli
selected paths toxplr
selection.The text was updated successfully, but these errors were encountered: