Skip to content

Allow passing file path to trash-restore #359

@Muizzyranking

Description

@Muizzyranking

I just started using this tool, thank you very much for making this.

Since I started doing some operations, I thought to write a script with fzf that allows to restore/delete files from trash. I used trash-list to get all files/directories in trash then fzf to show all the files. I can then select a file or multiple files and then perform an action on them. When I click enter, I get another fzf window that asks if I want to restore or delete, however, I can not get it to work because of the way trash-restore works. It shows a prompt and I enter index(es) of file(s) I want to restore, but I would like some way where we can pass the filepath from where it was deleted since trash-list shows the filepath.

I do not mind trying to implement this, but I have not contributed to an open source project before and I do not know where to start.

Sorry if my English is bad.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions