Giter VIP home page Giter VIP logo

Comments (5)

andreafrancia avatar andreafrancia commented on August 23, 2024 1

I've implemented a sort of trash-restore [pattern], in this commit 421bf25 .
Please try out and let me know if it is going in the right directions.

Comments are welcome!

Thank you.

from trash-cli.

AeliusSaionji avatar AeliusSaionji commented on August 23, 2024

Let's not burden the dev with things that are built into linux- we can already sort restorable paths. The colrm command is, afaik, part of the core system utils on all linux distros. It removes a range of "columns" from text output. The trash-list command outputs 20 columns for the date and timestamp (might be different on your system if you don't use 24h time), so we can eliminate the timestamp using colrm to just get an output of absolute paths.
$ trash-list | colrm 1 20
The sort command is also, afaik, part of the core system utils for all linux distros. Read its manpage to learn about different sorting methods, but for the purpose of sorting by path:
$ trash-list | colrm 1 20 | sort

That just leaves the feature request: trash-restore [pattern]. You could easily specify a path as your pattern.

from trash-cli.

andy5995 avatar andy5995 commented on August 23, 2024

Let's not burden the dev with things that are built into linux- we can already sort restorable paths.

Agreed, @Link-Satonaka

from trash-cli.

mhalano avatar mhalano commented on August 23, 2024

I agree with this problem. I want to (not) to do this:
trash-put
And after that:
trash-restore !^
But because trash-restore just shows a menu, it's become impossible.

from trash-cli.

andreafrancia avatar andreafrancia commented on August 23, 2024

I'm closing this issue, feel free to comment or reopen as you find something to add or fix.

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.