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

Feature request: trash restore should only list items within current directory #77

Open
ghost opened this issue Feb 15, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Feb 15, 2023

Similar to how trash-cli handles restoring items, I would like for the ability to list items within only the current directory from which the command is executed from.

For example, if I am in ~/Downloads, the only items I would like to see from trash restore would be those whose original location was in ~/Downloads.

Using trash restore -d ./ does not work because it no longer prompts for the index of items to restore, but attempts to restore all items.

I've currently forked this repo and removed the check for filters within restore.rs (allowing trash restore -d ./ to still prompt for index) but I'm sure that is not ideal. Willing to consider any better implementations and put in a pull request if that would be helpful.

@oberblastmeister oberblastmeister added the enhancement New feature or request label Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant