Giter VIP home page Giter VIP logo

Comments (8)

AeliusSaionji avatar AeliusSaionji commented on August 23, 2024 2

Why not just copy the code from trash-rm [pattern] to add pattern matching to restore: trash-restore [pattern]?

If the code cannot be so easily merged with the existing trash-restore, you could just make a trash-restore-pattern [pattern] function and call it a day.

from trash-cli.

arendu-zz avatar arendu-zz commented on August 23, 2024 1

@chronometric you can try my branch here: https://github.com/arendu/trash-cli

It allows giving a comma seperated list of indexes to restore.

@andreafrancia I have submitted a pull request. Thank you for creating this tool!

from trash-cli.

odious avatar odious commented on August 23, 2024

+1 for this. restoring many files one by one (and by hand) is extremely tedious.

from trash-cli.

photonometric avatar photonometric commented on August 23, 2024

This feature seems like a fairly essential interface convenience right now. Instead of scanning through the list of files once and typing the numbers I want to retrieve, I'm typing one number at a time, re-starting the program, using the mouse to scroll up the list pick out the next file, & etc

(The only way I could speed this up would be to write down the numbers of the files on a single read-through, and then work in reverse order so deleting earlier files didn't change the file numbers)

In issue #22 the range function was said to be a bad idea. I suppose that the range function is of limited use, since the files are not sorted in a useful order. But at least some implementation of this seems highly essential to facilitating the program's primary function upon more than one deleted file.

What objections are there to a multiple selection restore?

from trash-cli.

andreafrancia avatar andreafrancia commented on August 23, 2024

What objections are there to a multiple selection restore?

If you think a feature is essential please do it: you are free to fork and implement the feature.

from trash-cli.

photonometric avatar photonometric commented on August 23, 2024

@andreafrancia: I don't code. I'm sorry if my suggestion was out of line somehow; I was simply trying to articulate why the absence of this feature makes your otherwise excellent program increasingly awkward as its usage scales.

Since it's probably the most popular feature request, I thought it would be interesting and perhaps helpful to hear why you said it is undesirable, but you are obviously under no obligation to respond.

from trash-cli.

andreafrancia avatar andreafrancia commented on August 23, 2024

Probably the problem is that nobody with enough programming skill is commited to implement this feature.

Unfortunately I don't have time to understand the request nor to implement the feature, sorry. I wrote trash-cli before I got married, now I'm father of two.

The proposed solution for multiple selection seems awkward to me. The whole restore-trash is awkward. I would have created it exploiting shell-like globbing instead of indexing.

from trash-cli.

andreafrancia avatar andreafrancia commented on August 23, 2024

@arendu: thank you for proposing a solution.
I don't know if I can find the enough amount of time, focus and working linux system for reviewing your pull request design and implications at a level I can decide to merge it.
But I think that every interested person can checkout and use your version if they think it may fit their needs, so I thank you for that.

from trash-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.