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
Show filename in prompt when deleting a file #827
Comments
The current deletion prompt is an input box, which cannot include multi-line file list information in the title. I plan to add a separate confirm component to achieve this, it looks like: "Are you sure you want to move this file to the trash?" can be replaced with multi-line text. (Screenshot from neo-tree, a file manager plugin in neovim) But I haven't had enough time to complete it, would you like to give it a try? - If you're interested, I'll provide more details on how to implement it ;) |
Sure, if I get some free time I can play around with it for a bit |
Thank you, here are some implementation details:
|
Please describe the problem you're trying to solve
Hello, and thank you for creating yazi! Today I discovered it and ditched lf in favor of yazi :)
However, I have a request. I would like to see the name of the file I am about to delete, if it's just one, or even potentially a list of them if several are selected.
The point would be to avoid accidental deletions of important files
Would you be willing to contribute this feature?
Describe the solution you'd like
I'm not sure if delete_title can be a multiline string, or how that's rendered, but an idea would be to expose an extra variable, similar to lf's $fx or $fs. Then the prompt could be something like:
Delete the following files?
[...list of files]
(y/N)
Additional context
No response
The text was updated successfully, but these errors were encountered: