CopyQ icon indicating copy to clipboard operation
CopyQ copied to clipboard

Date limit for items in history instead of (or combined with) max number limit

Open SamHasler opened this issue 10 years ago • 4 comments

  • [ ] Add setting for Expire items in history after <input #> days to History settings tab.
  • [ ] Add checkboxes to Maximum number of items in history and Expire items in history after <input #> days so 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.

SamHasler avatar May 05 '15 10:05 SamHasler

:+1:

m4r71n avatar May 05 '15 12:05 m4r71n

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 avatar May 08 '15 13:05 hluk

@hluk That gist doesn't work for me. I've put the error I get as a comment on the gist.

SamHasler avatar Jul 23 '15 13:07 SamHasler