Skip to content

feat(clipboard): limit the number of history entries (#987) - #997

Merged
LeanBitLab merged 1 commit into
mainfrom
feat/clipboard-history-limit
Nov 29, 2026
Merged

LeanBitLab merged 1 commit into
mainfrom
feat/clipboard-history-limit

Conversation

@LeanBitLab

Copy link
Copy Markdown
Owner

Adds a limit on the number of clipboard history entries, requested in #987.

Changes

  • The history retention dialog now has two sliders: time (1 to 120 minutes, or no limit) and entries (10 to 500 in steps of 10, or no limit).
  • The entry limit defaults to no limit, so updating removes nothing.
  • Pinned entries are kept and don't count. The oldest unpinned entries above the limit are removed, also when retention time has no limit. Nothing is removed while the clipboard is shown.
  • The setting is renamed to "History retention". It uses a new string key; the old key is removed from all locales. 36 locales were machine translated by the commit hook, and 14 were adapted by hand from the old wording; none were checked by a native speaker. en-rGB uses the base text.
  • The new setting is included in backups.
  • The slider with step buttons is shared with the existing slider dialog, so other slider settings use it too. In the new dialog the time slider moves in whole minutes.

Verification

  • ClipboardHistoryLimitTest (4 new tests), SettingsContainerTest and BackupPreferencesTest pass.
  • assembleStandardDebug builds. compileOfflineRunTestsKotlin passed before the last 14 translations were added.
  • The new dialog still needs a check on a device.

The history retention dialog gets a second slider that limits how many
unpinned clips are kept, from 10 to 500, with no limit by default.
Pinned clips are kept and don't count. The oldest clips above the limit
are removed, but not while the clipboard is shown.

The setting is renamed to "History retention", as it no longer covers
only the time. The slider with its step buttons is shared between the
slider dialogs.
@LeanBitLab
LeanBitLab merged commit 03993af into main Nov 29, 2026
1 check passed
@LeanBitLab
LeanBitLab deleted the feat/clipboard-history-limit branch November 29, 2026 05:11
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

Successfully merging this pull request may close these issues.

1 participant