update to add an option to trim spaces on history capture

This commit is contained in:
Sergey Kurdin 2025-01-18 18:32:05 -05:00
parent 1fa0a9c7dd
commit 07665a81a5
14 changed files with 86 additions and 4 deletions

View File

@ -30,6 +30,9 @@ VALUES ('isHistoryEnabled', NULL, true, NULL);
INSERT INTO settings (name, value_text, value_bool, value_int) INSERT INTO settings (name, value_text, value_bool, value_int)
VALUES ('isHistoryAutoUpdateOnCaputureEnabled', NULL, true, NULL); VALUES ('isHistoryAutoUpdateOnCaputureEnabled', NULL, true, NULL);
INSERT INTO settings (name, value_text, value_bool, value_int)
VALUES ('isHistoryAutoTrimOnCaputureEnabled', NULL, true, NULL);
INSERT INTO settings (name, value_text, value_bool, value_int) INSERT INTO settings (name, value_text, value_bool, value_int)
VALUES ('isHistoryDetectLanguageEnabled', NULL, true, NULL); VALUES ('isHistoryDetectLanguageEnabled', NULL, true, NULL);

View File

@ -132,6 +132,8 @@ function App() {
settings.historyDetectLanguagesEnabledList?.valueText.split(','), settings.historyDetectLanguagesEnabledList?.valueText.split(','),
appToursCompletedList: settings.appToursCompletedList?.valueText.split(','), appToursCompletedList: settings.appToursCompletedList?.valueText.split(','),
appToursSkippedList: settings.appToursSkippedList?.valueText.split(','), appToursSkippedList: settings.appToursSkippedList?.valueText.split(','),
isHistoryAutoTrimOnCaputureEnabled:
settings.isHistoryAutoTrimOnCaputureEnabled?.valueBool,
isHistoryAutoUpdateOnCaputureEnabled: isHistoryAutoUpdateOnCaputureEnabled:
settings.isHistoryAutoUpdateOnCaputureEnabled?.valueBool, settings.isHistoryAutoUpdateOnCaputureEnabled?.valueBool,
isHistoryEnabled: settings.isHistoryEnabled?.valueBool, isHistoryEnabled: settings.isHistoryEnabled?.valueBool,

View File

@ -72,6 +72,8 @@ function QuickPasteApp() {
settings.historyDetectLanguagesEnabledList?.valueText.split(','), settings.historyDetectLanguagesEnabledList?.valueText.split(','),
appToursCompletedList: settings.appToursCompletedList?.valueText.split(','), appToursCompletedList: settings.appToursCompletedList?.valueText.split(','),
appToursSkippedList: settings.appToursSkippedList?.valueText.split(','), appToursSkippedList: settings.appToursSkippedList?.valueText.split(','),
isHistoryAutoTrimOnCaputureEnabled:
settings.isHistoryAutoTrimOnCaputureEnabled?.valueBool,
isHistoryAutoUpdateOnCaputureEnabled: isHistoryAutoUpdateOnCaputureEnabled:
settings.isHistoryAutoUpdateOnCaputureEnabled?.valueBool, settings.isHistoryAutoUpdateOnCaputureEnabled?.valueBool,
isHistoryEnabled: settings.isHistoryEnabled?.valueBool, isHistoryEnabled: settings.isHistoryEnabled?.valueBool,
@ -118,6 +120,8 @@ function QuickPasteApp() {
isShowDisabledCollectionsOnNavBarMenu: isShowDisabledCollectionsOnNavBarMenu:
settings.isShowDisabledCollectionsOnNavBarMenu?.valueBool, settings.isShowDisabledCollectionsOnNavBarMenu?.valueBool,
userSelectedLanguage: settings.userSelectedLanguage?.valueText, userSelectedLanguage: settings.userSelectedLanguage?.valueText,
clipTextMinLength: settings.clipTextMinLength?.valueInt,
clipTextMaxLength: settings.clipTextMaxLength?.valueInt,
isAppReady: true, isAppReady: true,
}) })

View File

@ -22,6 +22,7 @@ Auto-Clear Settings: Auto-Clear Settings
Auto-Generate Link Card Preview: Auto-Generate Link Card Preview Auto-Generate Link Card Preview: Auto-Generate Link Card Preview
Auto-Preview Link on Hover: Auto-Preview Link on Hover Auto-Preview Link on Hover: Auto-Preview Link on Hover
Auto-Star on Double Copy: Auto-Star on Double Copy Auto-Star on Double Copy: Auto-Star on Double Copy
Auto-Trim Spaces on Capture: Auto-Trim Spaces on Capture
Auto-Update on Capture: Auto-Update on Capture Auto-Update on Capture: Auto-Update on Capture
Auto-delete clipboard history after: Auto-delete clipboard history after Auto-delete clipboard history after: Auto-delete clipboard history after
? Automatically create link card preview in the clipboard history. This allows to quickly view website details without opening or pasting the link. ? Automatically create link card preview in the clipboard history. This allows to quickly view website details without opening or pasting the link.
@ -58,6 +59,7 @@ Enable Clip Title Hover Show with Delay: Enable Clip Title Hover Show with Delay
Enable application auto start on system boot: Enable application auto start on system boot Enable application auto start on system boot: Enable application auto start on system boot
Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.: Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data. Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.: Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.
Enable auto lock the application screen when user not active: Enable auto lock the application screen when user not active Enable auto lock the application screen when user not active: Enable auto lock the application screen when user not active
Enable auto trim spaces on history capture: Enable auto trim spaces on history capture
Enable auto update on capture: Enable auto update on capture Enable auto update on capture: Enable auto update on capture
Enable history capture: Enable history capture Enable history capture: Enable history capture
Enable programming language detection: Enable programming language detection Enable programming language detection: Enable programming language detection

View File

@ -22,6 +22,7 @@ Auto-Clear Settings: Ajustes de Borrado Automático
Auto-Generate Link Card Preview: Generar Auto Vista Previa de Tarjeta de Enlace Auto-Generate Link Card Preview: Generar Auto Vista Previa de Tarjeta de Enlace
Auto-Preview Link on Hover: Vista Previa Auto de Enlace al Pasar Auto-Preview Link on Hover: Vista Previa Auto de Enlace al Pasar
Auto-Star on Double Copy: Estrella Auto al Copiar Dos Veces Auto-Star on Double Copy: Estrella Auto al Copiar Dos Veces
Auto-Trim Spaces on Capture: Recortar espacios automáticamente al capturar
Auto-Update on Capture: Actualización Auto al Capturar Auto-Update on Capture: Actualización Auto al Capturar
Auto-delete clipboard history after: Borrar auto el historial después de Auto-delete clipboard history after: Borrar auto el historial después de
? Automatically create link card preview in the clipboard history. This allows to quickly view website details without opening or pasting the link. ? Automatically create link card preview in the clipboard history. This allows to quickly view website details without opening or pasting the link.
@ -58,6 +59,7 @@ Enable Clip Title Hover Show with Delay: Habilitar Mostrar Título del Clip al P
Enable application auto start on system boot: Habilitar inicio automático de la aplicación al arrancar el sistema Enable application auto start on system boot: Habilitar inicio automático de la aplicación al arrancar el sistema
Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.: Habilita el bloqueo automático de la pantalla después de un período de inactividad para prevenir acceso no autorizado a tus datos. Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.: Habilita el bloqueo automático de la pantalla después de un período de inactividad para prevenir acceso no autorizado a tus datos.
Enable auto lock the application screen when user not active: Habilitar bloqueo automático de la pantalla cuando el usuario no está activo Enable auto lock the application screen when user not active: Habilitar bloqueo automático de la pantalla cuando el usuario no está activo
Enable auto trim spaces on history capture: Activar recorte automático de espacios al capturar el historial
Enable auto update on capture: Habilitar actualización automática al capturar Enable auto update on capture: Habilitar actualización automática al capturar
Enable history capture: Habilitar captura de historial Enable history capture: Habilitar captura de historial
Enable programming language detection: Habilitar detección de lenguaje de programación Enable programming language detection: Habilitar detección de lenguaje de programación

View File

@ -22,6 +22,7 @@ Auto-Clear Settings: Paramètres d'auto-nettoyage
Auto-Generate Link Card Preview: Génération automatique d'un aperçu de la carte de lien Auto-Generate Link Card Preview: Génération automatique d'un aperçu de la carte de lien
Auto-Preview Link on Hover: Lien de prévisualisation automatique au survol Auto-Preview Link on Hover: Lien de prévisualisation automatique au survol
Auto-Star on Double Copy: Étoile automatique en cas double copie Auto-Star on Double Copy: Étoile automatique en cas double copie
Auto-Trim Spaces on Capture: Suppression automatique des espaces à la capture
Auto-Update on Capture: Mise à jour automatique à la capture Auto-Update on Capture: Mise à jour automatique à la capture
Auto-delete clipboard history after: Suppression automatique de l'historique du presse-papiers après Auto-delete clipboard history after: Suppression automatique de l'historique du presse-papiers après
? Automatically create link card preview in the clipboard history. This allows to quickly view website details without opening or pasting the link. ? Automatically create link card preview in the clipboard history. This allows to quickly view website details without opening or pasting the link.
@ -58,6 +59,7 @@ Enable Clip Title Hover Show with Delay: Activer l'affichage du titre du clip au
Enable application auto start on system boot: Activer démarrage auto de l'app au démarrage système Enable application auto start on system boot: Activer démarrage auto de l'app au démarrage système
Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.: Activez le verrouillage automatique de l'écran de l'application après une certaine période d'inactivité, afin d'empêcher tout accès non autorisé à vos données. Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.: Activez le verrouillage automatique de l'écran de l'application après une certaine période d'inactivité, afin d'empêcher tout accès non autorisé à vos données.
Enable auto lock the application screen when user not active: Activer le verrouillage automatique de l'écran de l'application lorsque l'utilisateur n'est pas actif Enable auto lock the application screen when user not active: Activer le verrouillage automatique de l'écran de l'application lorsque l'utilisateur n'est pas actif
Enable auto trim spaces on history capture: Activer la suppression automatique des espaces lors de la capture de l'historique
Enable auto update on capture: Activer la mise à jour automatique lors de la capture Enable auto update on capture: Activer la mise à jour automatique lors de la capture
Enable history capture: Activer la capture de l'historique Enable history capture: Activer la capture de l'historique
Enable programming language detection: Activer la détection du langage de programmation Enable programming language detection: Activer la détection du langage de programmation

View File

@ -22,6 +22,7 @@ Auto-Generate Link Card Preview: Genera Automaticamente l'Anteprima della Scheda
Auto-Preview Link on Hover: Anteprima Automatica del Link al Passaggio del Mouse Auto-Preview Link on Hover: Anteprima Automatica del Link al Passaggio del Mouse
Auto-Star on Double Copy: Stella Automatica al Doppio Copia Auto-Star on Double Copy: Stella Automatica al Doppio Copia
Auto-Update on Capture: Aggiornamento Automatico alla Cattura Auto-Update on Capture: Aggiornamento Automatico alla Cattura
Auto-Trim Spaces on Capture: Rimozione automatica degli spazi alla cattura
Auto-delete clipboard history after: Elimina automaticamente la cronologia degli appunti dopo Auto-delete clipboard history after: Elimina automaticamente la cronologia degli appunti dopo
? Automatically create link card preview in the clipboard history. This allows to quickly view website details without opening or pasting the link. ? Automatically create link card preview in the clipboard history. This allows to quickly view website details without opening or pasting the link.
: Crea automaticamente l'anteprima della scheda link nella cronologia degli appunti. Questo permette di visualizzare rapidamente i dettagli del sito web senza aprire o incollare il link. : Crea automaticamente l'anteprima della scheda link nella cronologia degli appunti. Questo permette di visualizzare rapidamente i dettagli del sito web senza aprire o incollare il link.
@ -57,6 +58,7 @@ Enable Clip Title Hover Show with Delay: Abilita Visualizzazione del Titolo del
Enable application auto start on system boot: Abilita l'avvio automatico dell'applicazione all'avvio del sistema Enable application auto start on system boot: Abilita l'avvio automatico dell'applicazione all'avvio del sistema
Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.: Abilita il blocco automatico dello schermo dell'applicazione dopo un certo periodo di inattività, per prevenire l'accesso non autorizzato ai tuoi dati. Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.: Abilita il blocco automatico dello schermo dell'applicazione dopo un certo periodo di inattività, per prevenire l'accesso non autorizzato ai tuoi dati.
Enable auto lock the application screen when user not active: Abilita il blocco automatico dello schermo dell'applicazione quando l'utente non è attivo Enable auto lock the application screen when user not active: Abilita il blocco automatico dello schermo dell'applicazione quando l'utente non è attivo
Enable auto trim spaces on history capture: Attiva la rimozione automatica degli spazi durante la cattura della cronologia
Enable auto update on capture: Abilita l'aggiornamento automatico alla cattura Enable auto update on capture: Abilita l'aggiornamento automatico alla cattura
Enable history capture: Abilita la cattura della cronologia Enable history capture: Abilita la cattura della cronologia
Enable programming language detection: Abilita il rilevamento del linguaggio di programmazione Enable programming language detection: Abilita il rilevamento del linguaggio di programmazione

View File

@ -22,6 +22,7 @@ Auto-Preview Link on Hover: Автоматический предварител
Auto-Star on Double Copy: Автоматическое добавление в избранное при двойном копировании Auto-Star on Double Copy: Автоматическое добавление в избранное при двойном копировании
Auto-Update on Capture: Автоматическое обновление при захвате Auto-Update on Capture: Автоматическое обновление при захвате
Auto-delete clipboard history after: Автоматическое удаление истории буфера обмена после Auto-delete clipboard history after: Автоматическое удаление истории буфера обмена после
Auto-Trim Spaces on Capture: Автоматическое удаление пробелов при захвате
? Automatically create link card preview in the clipboard history. This allows to quickly view website details without opening or pasting the link. ? Automatically create link card preview in the clipboard history. This allows to quickly view website details without opening or pasting the link.
: Автоматически создавать предварительный просмотр ссылок в истории буфера обмена. Это позволяет быстро просматривать детали веб-сайтов без открытия или вставки ссылки. : Автоматически создавать предварительный просмотр ссылок в истории буфера обмена. Это позволяет быстро просматривать детали веб-сайтов без открытия или вставки ссылки.
? Automatically create link preview in the clipboard history. This allows to quickly view website details without opening or pasting the link. ? Automatically create link preview in the clipboard history. This allows to quickly view website details without opening or pasting the link.
@ -58,6 +59,7 @@ Enable Clip Title Hover Show with Delay: Включить задержку по
Enable application auto start on system boot: Включить автозапуск приложения при загрузке системы Enable application auto start on system boot: Включить автозапуск приложения при загрузке системы
Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.: Включить автоматическую блокировку экрана приложения после определенного периода бездействия, чтобы предотвратить несанкционированный доступ к вашим данным. Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.: Включить автоматическую блокировку экрана приложения после определенного периода бездействия, чтобы предотвратить несанкционированный доступ к вашим данным.
Enable auto update on capture: Включить автоматическое обновление при захвате Enable auto update on capture: Включить автоматическое обновление при захвате
Enable auto trim spaces on history capture: Включить автоматическое удаление пробелов при захвате истории буфера
Enable history capture: Включить захват истории буфера Enable history capture: Включить захват истории буфера
Enable programming language detection: Включить определение языка программирования Enable programming language detection: Включить определение языка программирования
Enable screen unlock requirement on app launch for enhanced security, safeguarding data from unauthorized access.: Включить требование разблокировки экрана при запуске приложения для повышения безопасности, защиты данных от несанкционированного доступа. Enable screen unlock requirement on app launch for enhanced security, safeguarding data from unauthorized access.: Включить требование разблокировки экрана при запуске приложения для повышения безопасности, защиты данных от несанкционированного доступа.

View File

@ -23,6 +23,7 @@ Auto-Generate Link Card Preview: Otomatik Bağlantı Kartı Önizlemesi Oluştur
Auto-Preview Link on Hover: Üzerine gelindiğinde Bağlantıyı Otomatik Önizleme Auto-Preview Link on Hover: Üzerine gelindiğinde Bağlantıyı Otomatik Önizleme
Auto-Star on Double Copy: Çift Kopyalamada Otomatik Favorile Auto-Star on Double Copy: Çift Kopyalamada Otomatik Favorile
Auto-Update on Capture: Yakalamada Otomatik Güncelleme Auto-Update on Capture: Yakalamada Otomatik Güncelleme
Auto-Trim Spaces on Capture: Yakalamada Otomatik Boşluk Kaldırma
Auto-delete clipboard history after: Panonun geçmişini otomatik olarak sil Auto-delete clipboard history after: Panonun geçmişini otomatik olarak sil
? Automatically create link card preview in the clipboard history. This allows to quickly view website details without opening or pasting the link. ? Automatically create link card preview in the clipboard history. This allows to quickly view website details without opening or pasting the link.
: Bağlantı kartı önizlemesini pano geçmişinde otomatik olarak oluşturun. Bu, bağlantıyı açmadan veya yapıştırmadan web sitesi ayrıntılarını hızlı bir şekilde görüntülemenizi sağlar. : Bağlantı kartı önizlemesini pano geçmişinde otomatik olarak oluşturun. Bu, bağlantıyı açmadan veya yapıştırmadan web sitesi ayrıntılarını hızlı bir şekilde görüntülemenizi sağlar.
@ -59,6 +60,7 @@ Enable application auto start on system boot: Sistem açıldığında uygulaman
Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.: Verilerinize yetkisiz erişimi önlemek için, belirli bir süre hareketsizlikten sonra uygulama ekranının otomatik olarak kilitlenmesini etkinleştirin. Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.: Verilerinize yetkisiz erişimi önlemek için, belirli bir süre hareketsizlikten sonra uygulama ekranının otomatik olarak kilitlenmesini etkinleştirin.
Enable auto lock the application screen when user not active: Kullanıcı aktif olmadığında uygulama ekranının otomatik olarak kilitlenmesini etkinleştirin Enable auto lock the application screen when user not active: Kullanıcı aktif olmadığında uygulama ekranının otomatik olarak kilitlenmesini etkinleştirin
Enable auto update on capture: Yakalama sırasında otomatik güncellemeyi etkinleştir Enable auto update on capture: Yakalama sırasında otomatik güncellemeyi etkinleştir
Enable auto trim spaces on history capture: Geçmiş yakalamada otomatik boşluk kırpmayı etkinleştir
Enable history capture: Geçmiş yakalamayı etkinleştir Enable history capture: Geçmiş yakalamayı etkinleştir
Enable programming language detection: Programlama dili algılamayı etkinleştir Enable programming language detection: Programlama dili algılamayı etkinleştir
Enable screen unlock requirement on app launch for enhanced security, safeguarding data from unauthorized access.: Gelişmiş güvenlik için uygulama başlatıldığında ekran kilidi açma gereksinimini etkinleştirin ve verileri yetkisiz erişime karşı koruyun. Enable screen unlock requirement on app launch for enhanced security, safeguarding data from unauthorized access.: Gelişmiş güvenlik için uygulama başlatıldığında ekran kilidi açma gereksinimini etkinleştirin ve verileri yetkisiz erişime karşı koruyun.

View File

@ -22,6 +22,7 @@ Auto-Preview Link on Hover: Автоматичний попередній пер
Auto-Star on Double Copy: Автоматичне додавання до вибраного при подвійному копіюванні Auto-Star on Double Copy: Автоматичне додавання до вибраного при подвійному копіюванні
Auto-Update on Capture: Автоматичне оновлення при захопленні Auto-Update on Capture: Автоматичне оновлення при захопленні
Auto-delete clipboard history after: Автоматичне видалення історії буфера обміну після Auto-delete clipboard history after: Автоматичне видалення історії буфера обміну після
Auto-Trim Spaces on Capture: Автоматичне видалення пробілів при захопленні
? Automatically create link card preview in the clipboard history. This allows to quickly view website details without opening or pasting the link. ? Automatically create link card preview in the clipboard history. This allows to quickly view website details without opening or pasting the link.
: Автоматично створювати попередній перегляд посилань в історії буфера обміну. Це дозволяє швидко переглядати деталі веб-сайтів без відкриття або вставки посилання. : Автоматично створювати попередній перегляд посилань в історії буфера обміну. Це дозволяє швидко переглядати деталі веб-сайтів без відкриття або вставки посилання.
? Automatically create link preview in the clipboard history. This allows to quickly view website details without opening or pasting the link. ? Automatically create link preview in the clipboard history. This allows to quickly view website details without opening or pasting the link.
@ -58,6 +59,7 @@ Enable Clip Title Hover Show with Delay: Увімкнути затримку п
Enable application auto start on system boot: Увімкнути автозапуск додатку при завантаженні системи Enable application auto start on system boot: Увімкнути автозапуск додатку при завантаженні системи
Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.: Увімкнути автоматичне блокування екрану додатку після певного періоду бездіяльності, щоб запобігти несанкціонованому доступу до ваших даних. Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.: Увімкнути автоматичне блокування екрану додатку після певного періоду бездіяльності, щоб запобігти несанкціонованому доступу до ваших даних.
Enable auto update on capture: Увімкнути автоматичне оновлення при захопленні Enable auto update on capture: Увімкнути автоматичне оновлення при захопленні
Enable auto trim spaces on history capture: Увімкнути автоматичне видалення пробілів при захопленні історії буфера
Enable history capture: Увімкнути захоплення історії буфера Enable history capture: Увімкнути захоплення історії буфера
Enable programming language detection: Увімкнути визначення мови програмування Enable programming language detection: Увімкнути визначення мови програмування
Enable screen unlock requirement on app launch for enhanced security, safeguarding data from unauthorized access.: Увімкнути вимогу розблокування екрану при запуску додатку для підвищення безпеки, захисту даних від несанкціонованого доступу. Enable screen unlock requirement on app launch for enhanced security, safeguarding data from unauthorized access.: Увімкнути вимогу розблокування екрану при запуску додатку для підвищення безпеки, захисту даних від несанкціонованого доступу.

View File

@ -23,6 +23,7 @@ Auto-Generate Link Card Preview: 自动生成链接卡片预览
Auto-Preview Link on Hover: 悬停时自动预览链接 Auto-Preview Link on Hover: 悬停时自动预览链接
Auto-Star on Double Copy: 双重复制时自动星标 Auto-Star on Double Copy: 双重复制时自动星标
Auto-Update on Capture: 捕获时自动更新 Auto-Update on Capture: 捕获时自动更新
Auto-Trim Spaces on Capture: 捕获时自动删除空格
Auto-delete clipboard history after: 自动删除剪贴板历史时间 Auto-delete clipboard history after: 自动删除剪贴板历史时间
? Automatically create link card preview in the clipboard history. This allows to quickly view website details without opening or pasting the link. ? Automatically create link card preview in the clipboard history. This allows to quickly view website details without opening or pasting the link.
: 在剪贴板历史中自动创建链接卡片预览。这允许快速查看网站详情,无需打开或粘贴链接。 : 在剪贴板历史中自动创建链接卡片预览。这允许快速查看网站详情,无需打开或粘贴链接。
@ -59,6 +60,7 @@ Enable application auto start on system boot: 启用系统启动时应用程序
Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.: 启用在一定时间不活动后自动锁定应用程序屏幕,以防止未经授权访问您的数据。 Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.: 启用在一定时间不活动后自动锁定应用程序屏幕,以防止未经授权访问您的数据。
Enable auto lock the application screen when user not active: 用户不活动时启用自动锁定应用程序屏幕 Enable auto lock the application screen when user not active: 用户不活动时启用自动锁定应用程序屏幕
Enable auto update on capture: 启用捕获时自动更新 Enable auto update on capture: 启用捕获时自动更新
Enable auto trim spaces on history capture: 启用历史记录捕获时自动修剪空格
Enable history capture: 启用历史捕获 Enable history capture: 启用历史捕获
Enable programming language detection: 启用编程语言检测 Enable programming language detection: 启用编程语言检测
Enable screen unlock requirement on app launch for enhanced security, safeguarding data from unauthorized access.: 启用应用启动时的屏幕解锁要求,以增强安全性,保护数据免受未授权访问。 Enable screen unlock requirement on app launch for enhanced security, safeguarding data from unauthorized access.: 启用应用启动时的屏幕解锁要求,以增强安全性,保护数据免受未授权访问。

View File

@ -88,6 +88,8 @@ export default function ClipboardHistorySettings() {
setClipTextMaxLength, setClipTextMaxLength,
setIsHistoryEnabled, setIsHistoryEnabled,
isHistoryAutoUpdateOnCaputureEnabled, isHistoryAutoUpdateOnCaputureEnabled,
setIsHistoryAutoTrimOnCaputureEnabled,
isHistoryAutoTrimOnCaputureEnabled,
setIsHistoryAutoUpdateOnCaputureEnabled, setIsHistoryAutoUpdateOnCaputureEnabled,
setIsExclusionListEnabled, setIsExclusionListEnabled,
setIsExclusionAppListEnabled, setIsExclusionAppListEnabled,
@ -300,11 +302,10 @@ export default function ClipboardHistorySettings() {
onChange={e => { onChange={e => {
const value = e.target.value const value = e.target.value
if (value === '') { if (value === '') {
setClipTextMinLength(0); setClipTextMinLength(0)
} else { } else {
const number = parseInt(value) const number = parseInt(value)
setClipTextMinLength(number) setClipTextMinLength(number)
} }
}} }}
/> />
@ -324,7 +325,7 @@ export default function ClipboardHistorySettings() {
onChange={e => { onChange={e => {
const value = e.target.value const value = e.target.value
if (value === '') { if (value === '') {
setClipTextMaxLength(0); setClipTextMaxLength(0)
} else { } else {
const number = parseInt(value) const number = parseInt(value)
setClipTextMaxLength(number) setClipTextMaxLength(number)
@ -335,7 +336,9 @@ export default function ClipboardHistorySettings() {
<Button <Button
variant="secondary" variant="secondary"
size="sm" size="sm"
disabled={clipTextMinLength === 0 && clipTextMaxLength === 5000} disabled={
clipTextMinLength === 0 && clipTextMaxLength === 5000
}
onClick={() => { onClick={() => {
setClipTextMinLength(0) setClipTextMinLength(0)
setClipTextMaxLength(5000) setClipTextMaxLength(5000)
@ -347,6 +350,7 @@ export default function ClipboardHistorySettings() {
</CardContent> </CardContent>
</Card> </Card>
</Box> </Box>
<Box className="max-w-xl animate-in fade-in mt-4"> <Box className="max-w-xl animate-in fade-in mt-4">
<Card <Card
className={`${ className={`${
@ -376,6 +380,37 @@ export default function ClipboardHistorySettings() {
</Card> </Card>
</Box> </Box>
<Box className="max-w-xl animate-in fade-in mt-4">
<Card
className={`${
!isHistoryAutoTrimOnCaputureEnabled &&
'opacity-80 bg-gray-100 dark:bg-gray-900/80'
}`}
>
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-1">
<CardTitle className="animate-in fade-in text-md font-medium w-full">
{t('Auto-Trim Spaces on Capture', { ns: 'settings' })}
</CardTitle>
<Switch
checked={isHistoryAutoTrimOnCaputureEnabled}
className="ml-auto"
onCheckedChange={() => {
setIsHistoryAutoTrimOnCaputureEnabled(
!isHistoryAutoTrimOnCaputureEnabled
)
}}
/>
</CardHeader>
<CardContent>
<Text className="text-sm text-muted-foreground">
{t('Enable auto trim spaces on history capture', {
ns: 'settings',
})}
</Text>
</CardContent>
</Card>
</Box>
<Box className="mt-4 max-w-xl animate-in fade-in"> <Box className="mt-4 max-w-xl animate-in fade-in">
<Card <Card
className={`${ className={`${

View File

@ -49,6 +49,7 @@ type Settings = {
autoClearSettingsDurationType: string autoClearSettingsDurationType: string
autoMaskWordsList: string autoMaskWordsList: string
isHistoryAutoUpdateOnCaputureEnabled: boolean isHistoryAutoUpdateOnCaputureEnabled: boolean
isHistoryAutoTrimOnCaputureEnabled: boolean
copyPasteDelay: number copyPasteDelay: number
copyPasteSequencePinnedDelay: number copyPasteSequencePinnedDelay: number
copyPasteSequenceIsReversOrder: boolean copyPasteSequenceIsReversOrder: boolean
@ -91,6 +92,9 @@ export interface SettingsStoreState {
setIsHistoryAutoUpdateOnCaputureEnabled: ( setIsHistoryAutoUpdateOnCaputureEnabled: (
isHistoryAutoUpdateOnCaputureEnabled: boolean isHistoryAutoUpdateOnCaputureEnabled: boolean
) => void ) => void
setIsHistoryAutoTrimOnCaputureEnabled: (
isHistoryAutoTrimOnCaputureEnabled: boolean
) => void
setIsFirstRun: (isFirstRun: boolean) => void setIsFirstRun: (isFirstRun: boolean) => void
setIsFirstRunAfterUpdate: (isFirstRunAfterUpdate: boolean) => void setIsFirstRunAfterUpdate: (isFirstRunAfterUpdate: boolean) => void
setCopyPasteDelay: (delay: number) => void setCopyPasteDelay: (delay: number) => void
@ -214,6 +218,7 @@ const initialState: SettingsStoreState & Settings = {
isSkipAutoStartPrompt: false, isSkipAutoStartPrompt: false,
userSelectedLanguage: '', userSelectedLanguage: '',
isHistoryAutoUpdateOnCaputureEnabled: true, isHistoryAutoUpdateOnCaputureEnabled: true,
isHistoryAutoTrimOnCaputureEnabled: true,
isIdleScreenAutoLockEnabled: false, isIdleScreenAutoLockEnabled: false,
idleScreenAutoLockTimeInMinutes: null, idleScreenAutoLockTimeInMinutes: null,
isShowHistoryCaptureOnLockedScreen: false, isShowHistoryCaptureOnLockedScreen: false,
@ -247,6 +252,7 @@ const initialState: SettingsStoreState & Settings = {
setHotKeysShowHideQuickPasteWindow: () => {}, setHotKeysShowHideQuickPasteWindow: () => {},
setHistoryExclusionList: () => {}, setHistoryExclusionList: () => {},
setIsHistoryAutoUpdateOnCaputureEnabled: () => {}, setIsHistoryAutoUpdateOnCaputureEnabled: () => {},
setIsHistoryAutoTrimOnCaputureEnabled: () => {},
addToHistoryExclusionAppList: () => {}, addToHistoryExclusionAppList: () => {},
setHistoryDetectLanguagesEnabledList: () => {}, setHistoryDetectLanguagesEnabledList: () => {},
setAppToursCompletedList: () => {}, setAppToursCompletedList: () => {},
@ -380,6 +386,14 @@ export const settingsStore = createStore<SettingsStoreState & Settings>()((set,
console.error(e) console.error(e)
} }
}, },
setIsHistoryAutoTrimOnCaputureEnabled: async (
isHistoryAutoTrimOnCaputureEnabled: boolean
) => {
return get().updateSetting(
'isHistoryAutoTrimOnCaputureEnabled',
isHistoryAutoTrimOnCaputureEnabled
)
},
setIsHistoryAutoUpdateOnCaputureEnabled: async ( setIsHistoryAutoUpdateOnCaputureEnabled: async (
isHistoryAutoUpdateOnCaputureEnabled: boolean isHistoryAutoUpdateOnCaputureEnabled: boolean
) => { ) => {

View File

@ -100,6 +100,14 @@ where
Err(()) => None, Err(()) => None,
}; };
if let Ok(mut text) = clipboard_text { if let Ok(mut text) = clipboard_text {
let trim_text_history = settings_map
.get("isHistoryAutoTrimOnCaputureEnabled")
.and_then(|s| s.value_bool)
.unwrap_or(true);
if trim_text_history {
text = text.trim().to_string();
}
if !text.is_empty() { if !text.is_empty() {
let mut is_excluded = false; let mut is_excluded = false;