Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to clear the history in CopyQ? #1031

Closed
Vafa-Andalibi opened this issue Oct 27, 2018 · 4 comments
Closed

How to clear the history in CopyQ? #1031

Vafa-Andalibi opened this issue Oct 27, 2018 · 4 comments

Comments

@Vafa-Andalibi
Copy link

Hi,

I'd like to create a shortcut for clearing the history, but surprisingly couldn't find anything about this. Could you please help me with that?

Thanks,

@hluk
Copy link
Owner

hluk commented Oct 28, 2018

Would Ctrl+A, Delete work?

@Vafa-Andalibi
Copy link
Author

Yes thank you it's good enough. Yet, is it possible to create a command for "show main window -> press ctrl+a -> press del -> hide main window" ?

@hluk
Copy link
Owner

hluk commented Oct 29, 2018

There is Clear Clipboard Tab command which can be triggered from main window.

Here is modified command that can be used with a global shortcut (without showing main window):

[Command]
Command="
    copyq:
    tab(config('clipboard_tab'))
    var count = size()
    if (count) {
      items = Array
        .apply(0, Array(count))
        .map(function(x,i){return i})
      remove.apply(this, items)
    }
    popup('Clipboard Tab Cleared')"
GlobalShortcut=meta+ctrl+x
Icon=\xf2ed
IsGlobalShortcut=true
Name=Clear Clipboard Tab

@Vafa-Andalibi
Copy link
Author

works like a charm!

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants