Commit Graph

107 Commits

Author SHA1 Message Date
Gustavo Carvalho
e5739a2dc8 chore: bump version to 0.5.3 2026-02-10 05:04:41 -03:00
Gustavo Carvalho
055a2c505f chore: bump version to 0.5.2 2026-01-30 07:00:57 -03:00
Eyad
314e8d377f Feat/dynamic tray icon (#135)
* feat: Add Dynamic Tray Icon

---------

Co-authored-by: Antigravity Bot <bot@antigravity.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-29 02:42:55 -03:00
Gustavo Carvalho
47056d551a chore: bump version to 0.5.1 2026-01-20 00:02:22 -03:00
freshCoder21313
c298453cb8 feat: implement automatic history cleanup based on time intervals (#123)
* feat: implement automatic history cleanup based on time intervals

- Add `cleanup_old_items` method to `ClipboardManager` to remove non-pinned items older than a specified interval.
- Update `UserSettings` to include `auto_delete_interval` and `auto_delete_unit`.
- Trigger cleanup in the background thread (every ~30 seconds) and immediately when the main window is toggled.
- Emit a `history-cleared` event when items are auto-deleted to keep the UI in sync.

* refactor: centralize auto-delete interval calculation in UserSettings

Extract the logic for converting auto-delete intervals (minutes, hours, days, weeks) into a dedicated method `auto_delete_interval_in_minutes` within the UserSettings struct.

This change:
- Removes duplicated logic in main.rs
- Improves code maintainability by centralizing the unit conversion
- Introduces safer numeric operations using saturating_mul
- Simplifies the interval check in the clipboard watcher background task

* feat: ensure clipboard history persistence and improve event handling

- Expose `save_history` in `ClipboardManager` to allow explicit persistence during cleanup.
- Trigger `save_history` in `main.rs` when old items are cleaned up to ensure the disk state matches the memory state before emitting events.
- Update `user_settings.rs` to treat unknown auto-delete units as unreachable for better error tracking.
- Enhance `useClipboardHistory.ts` by adding a `history-sync` listener and implementing mount guards to prevent memory leaks and state updates on unmounted components.
2026-01-16 15:47:34 -03:00
Gustavo Carvalho
ff6db1282a chore: bump version to 0.5.0 2026-01-06 16:00:34 -03:00
dependabot[bot]
cd63f37bcf chore(deps): bump the all-cargo group in /src-tauri with 2 updates (#114)
* chore(deps): bump the all-cargo group in /src-tauri with 2 updates

Updates the requirements on [reqwest](https://github.com/seanmonstar/reqwest) and [whoami](https://github.com/ardaku/whoami) to permit the latest version.

Updates `reqwest` to 0.13.1
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.12.0...v0.13.1)

Updates `whoami` to 2.0.0
- [Release notes](https://github.com/ardaku/whoami/releases)
- [Commits](https://github.com/ardaku/whoami/compare/v1.5.0...v2.0.0)

---
updated-dependencies:
- dependency-name: reqwest
  dependency-version: 0.13.1
  dependency-type: direct:production
  dependency-group: all-cargo
- dependency-name: whoami
  dependency-version: 2.0.0
  dependency-type: direct:production
  dependency-group: all-cargo
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: handle error when retrieving username in fix_permissions_now function

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gustavo Carvalho <gustaavoribeeiro@hotmail.com>
2026-01-06 15:59:15 -03:00
Hen
11c4d08471 fix: debian dependencies had wrong package (#115) 2026-01-06 15:27:02 -03:00
Gustavo Carvalho
52ac857647 chore: bump version to 0.4.28 2026-01-06 14:15:06 -03:00
Gustavo Carvalho
40c192d307 fix: remove forced x11 backend (#116) 2026-01-06 14:14:27 -03:00
Gustavo Carvalho
d12afdf6be chore: bump version to 0.4.27 2026-01-04 09:16:01 -03:00
Gustavo Carvalho
f5d952d9ec fix: ensure software rendering in virtualized environments 2026-01-04 09:15:32 -03:00
Gustavo Carvalho
9bc99a3687 chore: bump version to 0.4.26 2026-01-04 05:41:16 -03:00
Gustavo Carvalho
a5546669cf fix: revert resolve WebKit incompatibility on Pop!_OS (#109)
This reverts commit dc7e1288e0.
2026-01-04 05:40:17 -03:00
Gustavo Carvalho
bd9c8772f0 chore: bump version to 0.4.25 2026-01-03 22:59:18 -03:00
Gustavo Carvalho
dc7e1288e0 fix: resolve WebKit incompatibility on Pop!_OS (#109) 2026-01-03 22:52:19 -03:00
Gustavo Carvalho
0f1538589b chore: improve backup handling by creating a single backup file if it doesn't exist (#105) 2026-01-03 18:24:14 -03:00
Gustavo Carvalho
d95feffbb9 chore: bump version to 0.4.24 2026-01-03 17:20:52 -03:00
Gustavo Carvalho
72cb57c4e3 feat: implement COSMIC shortcut handling with RON format support (#97)
* feat: implement COSMIC shortcut handling with RON format support

* chore: ajusts from copilot review

* feat: add RON string escaping

* chore: enhance COSMIC shortcut normalization
2026-01-03 17:20:02 -03:00
Gustavo Carvalho
d50e207606 feat: make it resizable (#95) 2026-01-03 15:24:05 -03:00
Gustavo Carvalho
6c2640159a fix: add missing dependencies for package installation (#94) 2026-01-03 15:05:14 -03:00
Gustavo Carvalho
a048638427 chore: bump version to 0.4.23 2026-01-01 15:11:11 -03:00
Gustavo Carvalho
3875462449 feat: theme detection mechanism (#88)
* feat: theme detection mechanism

* feat: implement D-Bus theme detection

* feat: implement centralized system theme detection mechanism
2026-01-01 14:22:41 -03:00
Gustavo Carvalho
d87027887e chore: bump version to 0.4.22 2026-01-01 07:26:57 -03:00
Gustavo Carvalho
544733782c chore: bump version to 0.4.21 2026-01-01 02:30:08 -03:00
Gustavo Carvalho
bb053f6ef4 feat: WIN + . shortcut (#84)
* feat: win dot shortcut

* fix: LXQt shortcut section

* feat: add percent-encoding dependency

* feat: add LXDE shortcut binding support

* feat: enhance INI encoding and XML escaping in shortcut manager
2026-01-01 02:29:32 -03:00
Gustavo Carvalho
b1f8f78898 chore: bump version to 0.4.20 2026-01-01 01:33:03 -03:00
Gustavo Carvalho
0bec6ea6b4 feat: ui scale setting (#83) 2026-01-01 01:32:29 -03:00
Gustavo Carvalho
f5c72e6926 chore: bump version to 0.4.19 2025-12-27 07:34:11 -03:00
Gustavo Carvalho
c86cc8ebb5 chore: bump version to 0.4.18 2025-12-27 03:48:38 -03:00
Gustavo Carvalho
d870cdd35b chore: bump version to 0.4.17 2025-12-26 20:07:15 -03:00
Gustavo Carvalho
80d52366ab feat: history limit (#68)
* feat: improve pinning logic in clipboard history

* feat: sort clipboard history items with pinned items first

* feat: add configurable maximum clipboard history size

* chore: remove zero check

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* feat: expose DEFAULT_MAX_HISTORY_SIZE

* feat: set default maximum history size from clipboard manager

* chore: make sort by key stable

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: improve sort by consistense

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: ensure history is persisted only when trimmed items exceed configured limit

* feat: minimum and maximum history size constants

* fix: enforcey history limit already truncate history

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* feat: enforce history limit considering pinned items

* feat: improve clipboard history synchronization

* feat: add logging for checking limits

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* feat: enhance clipboard history updates with delta handling

* feat: improve max history size input handling to prevent accidental data loss

* fix: ajust typo

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: improve comment

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: improve history change detection

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-26 20:05:50 -03:00
freshCoder21313
0211ab7d9e feat: smart actions (#67)
* feat: extract Kaomoji and Symbols feature

* style(lint & format): Improve code formatting and adjust whitespace
- Modified whitespace, blank lines, and prop alignment across ClipboardApp, KaomojiPicker, and user_settings.rs.
- Categorized as 'style' for cosmetic changes that enhance readability without altering any logic or functionality.
- Decision made to standardize prop indentation and remove unnecessary blank lines for consistent code style.

* chore: apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* feat(merge | expand-feature): add smart actions and setup wizard

* refactor: reorganize components and add minor features

* refactor: address review feedback and fix rich text rendering

- Enable rendering of `RichText` content in history items.
- Simplify `#[serde(default)]` usage in user settings.
- Improve regex error handling in clipboard search.
- Clean up imports, indentation, and redundant code in components.
- Enhance smart action regex and error logging.

* feat(clipboard): add history persistence and fixed related error (restart duplication)

- Implement JSON-based persistence for clipboard history
- Replace randomized DefaultHasher with deterministic FnvHasher to ensure stable hashing across restarts
- Initialize duplication checks from loaded history to prevent duplicate entries on startup

* feat(search): support RichText content
- Updated search logic in src/components/ClipboardTab.tsx.
- Categorized as 'feat' for adding new content type support to existing search capabilities.
- Introduced a `searchableText` variable to unify content extraction for filtering.

* refactor: centralize `BooleanSettingKey` type and enhance smart action URL detection and execution.

* refactor: restore the ability to execute smart actions using switch statements, handle errors, and log undefined actions of smartActions.

---------

Co-authored-by: Gustavo Carvalho <gustaavoribeeiro@hotmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-26 16:59:55 -03:00
Gustavo Carvalho
af8d00adde chore: bump version to 0.4.16 2025-12-26 01:53:19 -03:00
Gustavo Carvalho
a3da3eacb5 feat: rich text support (#65)
* feat: add support for rich text content in clipboard history

* fix: change get_current_html method to be non-mutating
2025-12-26 01:50:30 -03:00
Gustavo Carvalho
22ac7f1193 fix: ajust paste text consistency 2025-12-26 01:18:43 -03:00
freshCoder21313
fc249d5f99 feat: extract Kaomoji and Symbols feature (#66)
* feat: extract Kaomoji and Symbols feature

* style(lint & format): Improve code formatting and adjust whitespace
- Modified whitespace, blank lines, and prop alignment across ClipboardApp, KaomojiPicker, and user_settings.rs.
- Categorized as 'style' for cosmetic changes that enhance readability without altering any logic or functionality.
- Decision made to standardize prop indentation and remove unnecessary blank lines for consistent code style.

* chore: apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Gustavo Carvalho <gustaavoribeeiro@hotmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-26 00:43:07 -03:00
Gustavo Carvalho
198ec50bd8 chore: bump version to 0.4.15 2025-12-25 07:18:44 -03:00
Gustavo Carvalho
1307b5e35c feat: ensure background startup (#63)
* feat: ensure background startup with improved autostart handling

* chore: increase startup delay for background

* doc: remove old behavior comment

* refactor: rename INITIAL_SHOW_BLOCKED

* fix: correct Exec command syntax

* fix: change memory ordering
2025-12-25 07:18:15 -03:00
Gustavo Carvalho
c3fc4ac35b chore: bump version to 0.4.14 2025-12-25 05:09:47 -03:00
Gustavo Carvalho
3effc18c58 feat: clean up environment variables in wrapper 2025-12-25 05:09:25 -03:00
Gustavo Carvalho
73418fec81 chore: bump version to 0.4.13 2025-12-25 04:40:34 -03:00
Gustavo Carvalho
c740fbbc7d feat: auto-migrate old autostart entries to use the wrapper script 2025-12-25 04:38:40 -03:00
Gustavo Carvalho
d66a5d18b6 chore: bump version to 0.4.12 2025-12-25 04:08:06 -03:00
Gustavo Carvalho
a6dc442fd2 feat: implement custom autostart manager (#62)
* feat: implement custom autostart manager for Linux

* fix: correct Exec path format and enhance autostart file handling
2025-12-25 04:07:12 -03:00
Gustavo Carvalho
290042adb0 chore: bump version to 0.4.11 2025-12-25 02:40:45 -03:00
Gustavo Carvalho
f1bff0d565 refactor: simplify environment variable handling in wrapper script 2025-12-25 02:40:20 -03:00
Gustavo Carvalho
f8c89be015 chore: bump version to 0.4.10 2025-12-24 13:39:45 -03:00
Gustavo Carvalho
1e9a54f5ab chore: starting fixes (#60)
* feat: add temporary directory for tray icon to avoid permission issues

* fix: enhance uninstall process to remove all installation traces

* chore: prevents user overriding tray backend

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>

---------

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2025-12-24 13:39:11 -03:00
Gustavo Carvalho
67c8cd4244 chore: bump version to 0.4.9 2025-12-24 08:00:18 -03:00