Skip to content

How to filter long entries and delete them to speed up searching #2016

Answered by hluk
jcsagrero asked this question in Q&A
Discussion options

You must be logged in to vote

The following command would delete all items with more than 100 lines in the current tab - triggered with a custom shortcut or from the menu/toolbar (here is how to add the command to CopyQ):

[Command]
Command="
    copyq:
    ItemSelection(selectedTab())
        .select(/(\\n.*){100}/)
        .removeAll()"
Icon=\xf51a
InMenu=true
Name=Delete Long Items
Shortcut=ctrl+shift+del

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jcsagrero
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants