Giter VIP home page Giter VIP logo

Comments (6)

mrichar1 avatar mrichar1 commented on July 23, 2024 1

My plan is that --delete should work with strings or patterns (regexes) - I think it would not get used much if it took positional arguments.

I can see use cases for both exact matches and partial matches though. Partial matches with regex would be great for things like: --delete \b\S+\/\/.+:.+@ to remove accidentally cached urls with passwords in them. However I'm not sure if I want to force people to understand regexes to delete exact matches, i.e. --delete fish is friendlier than --delete ^fish$

Perhaps we need both --delete and --delete-pattern? Or maybe I'm over-thinking this!

from clipster.

mrichar1 avatar mrichar1 commented on July 23, 2024

Added use of <del> key in UI to delete items (multiple-row selection is also now possible).

Adding multi-select means that mouse button doesn't 'activate' the selection - will need to add a 'submit' button or similar to provide continued mouse functionality.

from clipster.

bennylb avatar bennylb commented on July 23, 2024

Very useful functionality. Are you deleting items by matching the currently selected item as a string or using an key/index associated with the item selected when pressing <del>? I'm just thinking forward to how the --delete command line option will work.

from clipster.

mrichar1 avatar mrichar1 commented on July 23, 2024

Select button added to allow continued mouse operation: 1007d66

from clipster.

bennylb avatar bennylb commented on July 23, 2024

I think providing both would add versatility. Maybe with an option -r for regex.

from clipster.

mrichar1 avatar mrichar1 commented on July 23, 2024

Simple command-line delete functionality added in 8deadbe (though actually use HEAD if you want to test this, as the documentation updates etc happened in later commits).

  -r [DELETE], --delete [DELETE]
                        Delete from clipboard. Deletes matching text, or if no
                        argument given, deletes last item.

So -r alone deletes last item, and -r secret will delete the clipboard entry secret.

I'm going to close this issue for now - if extended delete functionality is really needed we can open a new issue for regex deletes etc.

from clipster.

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.