Date limit for items in history instead of (or combined with) max number limit
- [ ] Add setting for
Expire items in history after <input #> daysto History settings tab. - [ ] Add checkboxes to
Maximum number of items in historyandExpire items in history after <input #> daysso those settings can be disabled.
I still run ditto alongside CopyQ because it can be configured to only remove entries after a specified number of days. This can be combined with a maximum limit although I leave that setting off so that I know I have a months worth (30 days) of clipboard entries.
I sometimes use the clipboard a lot, and would prefer not to lose recent items because I've hit an arbitrary limit, but don't want to have to set the maximum so high it impacts performance.
:+1:
Whenever a tab is accessed for the first time (or it has been unloaded before), all its items are loaded from disk. So there needs to be limit to number of items in single tab, otherwise you may experience slowdowns or the application can eat a lot of memory (this can be still true if the items are just big).
There is automatic command which can store time when item was copied (https://gist.github.com/hluk/4a7be6db8fe1c072469e). I think it should be possible to create another command which will move old items to different tab (e.g. "clipboard/Last Week", "clipboard/Two Weeks Ago" etc.) or remove them.
One problem is that commands can be only started by user or when clipboard changes (and monitoring is enabled).
@hluk That gist doesn't work for me. I've put the error I get as a comment on the gist.