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

Remove items from clipboard history. #20

Open
WorkInProgress-Development opened this issue Aug 12, 2019 · 2 comments
Open

Remove items from clipboard history. #20

WorkInProgress-Development opened this issue Aug 12, 2019 · 2 comments

Comments

@WorkInProgress-Development

Is there any way to remove items or completely clear clipboard history?

@linonetwo
Copy link
Member

It may not be necessary to remove a single item, because item got added rapidly, it will be just wash out.

But I think we can add a command to clear the whole history file.

@linonetwo
Copy link
Member

There are two storages, one is a folder for images:

https://github.com/tinytacoteam/zazu-clipboard/blob/203b1f3ec8e7dbf6af452621e762a73fc8270759/src/monitor.js#L72-L85

One is a .nedb database file for texts:

https://github.com/tinytacoteam/zazu-clipboard/blob/203b1f3ec8e7dbf6af452621e762a73fc8270759/src/lib/cappedCollection.js#L7-L11

There just need to be a command to delete them all. If you have time you can try to make a PR, or you can wait till I have time for this... I'm on several projects these days.

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