bayleeadamoss / zazu-clipboard

A clipboard manager for Zazu.
The Unlicense
14 stars 12 forks source link

Remove items from clipboard history. #20

Open WorkInProgress-Development opened 5 years ago

WorkInProgress-Development commented 5 years ago

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

linonetwo commented 5 years ago

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 commented 5 years ago

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.