Skip to content

Commit 2e1bb6a

Browse files
authored
Merge pull request #213 from segemun/feature/198-text-length-limits
Feature/198 text length limits
2 parents fc07b0c + a4b9f03 commit 2e1bb6a

23 files changed

+180
-25
lines changed

.changeset/clipboard-text-limits.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'pastebar-app-ui': patch
3+
---
4+
5+
Implement clipboard history filtering based on text length limits

packages/pastebar-app-ui/src/App.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ function App() {
135135
isHistoryAutoUpdateOnCaputureEnabled:
136136
settings.isHistoryAutoUpdateOnCaputureEnabled?.valueBool,
137137
isHistoryEnabled: settings.isHistoryEnabled?.valueBool,
138+
clipTextMinLength: settings.clipTextMinLength?.valueInt,
139+
clipTextMaxLength: settings.clipTextMaxLength?.valueInt,
138140
isAutoClearSettingsEnabled: settings.isAutoClearSettingsEnabled?.valueBool,
139141
autoClearSettingsDuration: settings.autoClearSettingsDuration?.valueInt,
140142
autoClearSettingsDurationType:

packages/pastebar-app-ui/src/locales/lang/en/common.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ Make Enabled: Make Enabled
134134
Make Inactive: Make Inactive
135135
Manage: Manage
136136
Maximum height: Maximum height
137+
Maximum length: Maximum
137138
Maximum width: Maximum width
138139
Menu: Menu
140+
Minimum length: Minimum
139141
Move Down: Move Down
140142
Move Up: Move Up
141143
Multi Select: Multi Select

packages/pastebar-app-ui/src/locales/lang/en/settings.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Auto-delete clipboard history after: Auto-delete clipboard history after
2828
: Automatically create link card preview in the clipboard history. This allows to quickly view website details without opening or pasting the link.
2929
Back: Back
3030
Capture History: Capture History
31+
Capture History Text Length Limits: Capture History Text Length Limits
3132
Change the application UI font size scale: Change the application UI font size scale
3233
Change the application UI language: Change the application UI language
3334
Change the application user interface color theme: Change the application user interface color theme
@@ -159,6 +160,8 @@ Thank you for testing! 🙌: Thank you for testing! 🙌
159160
: This option lets you control the display and timing of hover notes on clips. You can choose to show notes instantly or with a delay to prevent unintended popups.
160161
? This option lets you customize the maximum width and height of the popup that displays clip notes, ensuring it fits comfortably within your desired size.
161162
: This option lets you customize the maximum width and height of the popup that displays clip notes, ensuring it fits comfortably within your desired size.
163+
? This option lets you customize the minimum and maximum length of text that can be captured in the clipboard history. Setting either value to 0 makes that limit unlimited.
164+
: This option lets you customize the minimum and maximum length of text that can be captured in the clipboard history. Setting either value to 0 makes that limit unlimited.
162165
To downgrade your current version, please visit: To downgrade your current version, please visit
163166
'To downgrade, please visit: ': 'To downgrade, please visit: '
164167
To ensure the best detection accuracy, please select up to 7 languages. Limiting choices improves precision.: To ensure the best detection accuracy, please select up to 7 languages. Limiting choices improves precision.

packages/pastebar-app-ui/src/locales/lang/esES/common.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ Make Enabled: Hacer Habilitado
134134
Make Inactive: Hacer Inactivo
135135
Manage: Gestionar
136136
Maximum height: Altura máxima
137+
Maximum length: Longitud máxima
137138
Maximum width: Ancho máximo
138139
Menu: Menú
140+
Minimum length: Longitud mínima
139141
Move Down: Mover Abajo
140142
Move Up: Mover Arriba
141143
Multi Select: Selección Múltiple

packages/pastebar-app-ui/src/locales/lang/esES/settings.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Auto-delete clipboard history after: Borrar auto el historial después de
2828
: Crea automáticamente una vista previa de tarjeta de enlace en el historial. Esto permite ver rápidamente detalles del sitio web sin abrir o pegar el enlace.
2929
Back: Atrás
3030
Capture History: Capturar Historial
31+
Capture History Text Length Limits: Límites de Longitud del Texto del Historial de Captura
3132
Change the application UI font size scale: Cambiar la escala de tamaño de fuente de la interfaz
3233
Change the application UI language: Cambiar el idioma de la interfaz de la aplicación
3334
Change the application user interface color theme: Cambiar el tema de color de la interfaz de usuario
@@ -156,6 +157,8 @@ Thank you for testing! 🙌: ¡Gracias por probar! 🙌
156157
: Esta opción te permite controlar la visualización y el tiempo de las notas emergentes en los clips. Puedes elegir mostrar notas instantáneamente o con un retraso para evitar ventanas emergentes no deseadas.
157158
? This option lets you customize the maximum width and height of the popup that displays clip notes, ensuring it fits comfortably within your desired size.
158159
: Esta opción te permite personalizar el ancho y alto máximos de la ventana emergente que muestra las notas de los clips, asegurando que se ajuste cómodamente dentro del tamaño deseado.
160+
? This option lets you customize the minimum and maximum length of text that can be captured in the clipboard history. Setting either value to 0 makes that limit unlimited.
161+
: Esta opción te permite personalizar la longitud mínima y máxima del texto que puede ser capturado en el historial del portapapeles. Establecer cualquiera de los valores en 0 hace que ese límite sea ilimitado.
159162
To downgrade your current version, please visit: Para degradar tu versión actual, por favor visita
160163
'To downgrade, please visit: ': 'Para degradar, por favor visita: '
161164
To ensure the best detection accuracy, please select up to 7 languages. Limiting choices improves precision.: Para garantizar la mejor precisión de detección, por favor selecciona hasta 7 idiomas. Limitar las opciones mejora la precisión.

packages/pastebar-app-ui/src/locales/lang/fr/common.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ Make Inactive: Rendre inactif
135135
Manage: Gérer
136136
Maximum height: Hauteur maximale
137137
Maximum width: Largeur maximale
138+
Maximum length: Longitud máxima
138139
Menu: Menu
140+
Minimum length: Longitud mínima
139141
Move Down: Déplacer vers le bas
140142
Move Up: Déplacer vers le haut
141143
Multi Select: Sélection multiple

packages/pastebar-app-ui/src/locales/lang/fr/settings.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Auto-delete clipboard history after: Suppression automatique de l'historique du
2828
: Création automatique d'un aperçu de la carte du lien dans l'historique du presse-papiers. Cela permet de visualiser rapidement les détails du site web sans ouvrir ou coller le lien.
2929
Back: Retour
3030
Capture History: Capturer historique
31+
Capture History Text Length Limits: Limites de longueur du texte de l'historique de capture
3132
Change the application UI font size scale: Modifier l'échelle de taille de la police de l'interface utilisateur de l'application
3233
Change the application UI language: Changer la langue de l'interface de l'application
3334
Change the application user interface color theme: Changer la couleur du thème de l'interface utilisateur
@@ -159,6 +160,8 @@ Thank you for testing! 🙌: Merci pour le test ! 🙌
159160
: Cette option vous permet de contrôler l'affichage et la durée des notes au survol des clips. Vous pouvez choisir d'afficher les notes instantanément ou avec un délai pour éviter les popups involontaires.
160161
? This option lets you customize the maximum width and height of the popup that displays clip notes, ensuring it fits comfortably within your desired size.
161162
: Cette option vous permet de personnaliser la largeur et la hauteur maximales de la fenêtre contextuelle qui affiche les notes de clip, afin qu'elle s'adapte confortablement à la taille souhaitée.
163+
? This option lets you customize the minimum and maximum length of text that can be captured in the clipboard history. Setting either value to 0 makes that limit unlimited.
164+
: Cette option vous permet de personnaliser la longueur minimale et maximale du texte pouvant être capturé dans l'historique du presse-papiers. La définition de l'une ou l'autre valeur à 0 rend cette limite illimitée.
162165
To downgrade your current version, please visit: Pour rétrograder votre version actuelle, visitez
163166
'To downgrade, please visit: ': 'Pour rétrograder, visitez : '
164167
To ensure the best detection accuracy, please select up to 7 languages. Limiting choices improves precision.: Pour une détection optimale, sélectionnez jusqu'à 7 langues. Limiter les choix améliore la précision.

packages/pastebar-app-ui/src/locales/lang/it/common.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@ Make Enabled: Rendi Abilitato
127127
Make Inactive: Rendi Inattivo
128128
Manage: Gestisci
129129
Maximum height: Altezza massima
130+
Maximum length: Lunghezza massima
130131
Maximum width: Larghezza massima
131132
Menu: Menu
133+
Minimum length: Lunghezza minima
132134
Move Down: Sposta Giù
133135
Move Up: Sposta Su
134136
Multi Select: Selezione Multipla

packages/pastebar-app-ui/src/locales/lang/it/settings.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Auto-delete clipboard history after: Elimina automaticamente la cronologia degli
2727
: 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.
2828
Back: Indietro
2929
Capture History: Cattura Cronologia
30+
Capture History Text Length Limits: Limiti di Lunghezza del Testo della Cronologia degli Appunti
3031
Change the application UI font size scale: Cambia la scala della dimensione dei caratteri dell'interfaccia utente
3132
Change the application UI language: Cambia la lingua dell'interfaccia utente
3233
Change the application user interface color theme: Cambia il tema colore dell'interfaccia utente
@@ -158,6 +159,8 @@ Thank you for testing! 🙌: Grazie per il test! 🙌
158159
: Questa opzione ti permette di controllare la visualizzazione e la tempistica delle note al passaggio del mouse sui clip. Puoi scegliere di mostrare le note istantaneamente o con un ritardo per prevenire popup indesiderati.
159160
? This option lets you customize the maximum width and height of the popup that displays clip notes, ensuring it fits comfortably within your desired size.
160161
: Questa opzione ti permette di personalizzare la larghezza e l'altezza massima del popup che mostra le note dei clip, assicurando che si adatti comodamente alla dimensione desiderata.
162+
? This option lets you customize the minimum and maximum length of text that can be captured in the clipboard history. Setting either value to 0 makes that limit unlimited.
163+
: Questa opzione ti permette di personalizzare la lunghezza minima e massima del testo che può essere catturato nella cronologia degli appunti. Impostare uno dei due valori su 0 rende quel limite illimitato.
161164
To downgrade your current version, please visit: Per tornare a una versione precedente, visita
162165
'To downgrade, please visit: ': 'Per tornare a una versione precedente, visita: '
163166
To ensure the best detection accuracy, please select up to 7 languages. Limiting choices improves precision.: Per garantire la migliore precisione di rilevamento, seleziona fino a 7 lingue. Limitare le scelte migliora la precisione.

packages/pastebar-app-ui/src/locales/lang/ru/common.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@ Make Enabled: Сделать включенным
127127
Make Inactive: Сделать неактивным
128128
Manage: Управление
129129
Maximum height: Высота максимум
130+
Maximum length: Максимум
130131
Maximum width: Ширина максимум
131132
Menu: Меню
133+
Minimum length: Минимум
132134
Move Down: Переместить вниз
133135
Move Up: Переместить вверх
134136
Multi Select: Множественный выбор

packages/pastebar-app-ui/src/locales/lang/ru/settings.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Auto-delete clipboard history after: Автоматическое удалени
2828
: Automatically create link preview in the clipboard history. This allows to quickly view website details without opening or pasting the link.
2929
Back: Назад
3030
Capture History: Захват истории буфера
31+
Capture History Text Length Limits: Ограничения длины текста истории захвата
3132
Change the application UI font size scale: Изменить масштаб размера шрифта интерфейса приложения
3233
Change the application UI language: Изменить язык интерфейса приложения
3334
Change the application user interface color theme: Изменить цветовую тему интерфейса приложения
@@ -144,6 +145,8 @@ Thank you for testing! 🙌: Спасибо за тестирование! 🙌
144145
: Эта настройка позволяет управлять отображением и временем задержки всплывающих заметок при наведении на имя клипа. Выберите быстрый показ заметок или с задержкой.
145146
? This option lets you customize the maximum width and height of the popup that displays clip notes, ensuring it fits comfortably within your desired size.
146147
: Эта настройка дает возможность задать максимальные размеры всплывающего окна с заметками к клипам, чтобы оно лучше соответствовало вашим требованиям.
148+
? This option lets you customize the minimum and maximum length of text that can be captured in the clipboard history. Setting either value to 0 makes that limit unlimited.
149+
: Эта опция позволяет настроить минимальную и максимальную длину текста, который может быть захвачен в истории буфера обмена. Установка любого из значений в 0 делает это ограничение неограниченным.
147150
'To downgrade, please visit: ': 'Чтобы найти предыдущие версии, посетите следующую страницу: '
148151
To ensure the best detection accuracy, please select up to 7 languages. Limiting choices improves precision.: Для обеспечения наилучшей точности определения, пожалуйста, выберите до 7 языков. Ограничение выбора повышает точность.
149152
Today: Сегодня

packages/pastebar-app-ui/src/locales/lang/tr/common.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ Make Enabled: Etkin hale getir
133133
Make Inactive: Etkisiz yap
134134
Manage: Yönet
135135
Maximum height: Maksimum yükseklik
136+
Maximum length: Maksimum uzunluk
136137
Maximum width: Maksimum genişlik
138+
Minimum length: Minimum uzunluk
137139
Menu: Menü
138140
Move Down: Aşağı kaydır
139141
Move Up: Yukarı kaydır

packages/pastebar-app-ui/src/locales/lang/tr/settings.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Auto-delete clipboard history after: Panonun geçmişini otomatik olarak sil
2828
: 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.
2929
Back: Geri
3030
Capture History: Yakalama Geçmişi
31+
Capture History Text Length Limits: Yakalama Geçmişi Metin Uzunluğu Sınırları
3132
Change the application UI font size scale: Uygulama arayüzü yazı tipi boyutunu değiştirme
3233
Change the application UI language: Uygulama arayüzü dilini değiştirin
3334
Change the application user interface color theme: Uygulama arayüzü renk temasını değiştirin
@@ -159,6 +160,8 @@ Thank you for testing! 🙌: Test ettiğiniz için teşekkür ederiz! 🙌
159160
: Bu seçenek, kliplerdeki gezinme notlarının görüntülenmesini ve zamanlamasını kontrol etmenizi sağlar. Notları anında veya istenmeyen açılır pencereleri önlemek için gecikmeli olarak göstermeyi seçebilirsiniz.
160161
? This option lets you customize the maximum width and height of the popup that displays clip notes, ensuring it fits comfortably within your desired size.
161162
: Bu seçenek, klip notlarını görüntüleyen açılır pencerenin maksimum genişliğini ve yüksekliğini özelleştirmenize olanak tanır ve böylece pencerenin istediğiniz boyuta rahatça sığmasını sağlar.
163+
? This option lets you customize the minimum and maximum length of text that can be captured in the clipboard history. Setting either value to 0 makes that limit unlimited.
164+
: Bu seçenek, panoya kaydedilen metnin minimum ve maksimum uzunluğunu özelleştirmenize olanak tanır. Her iki değeri de 0 olarak ayarlamak, bu sınırı sınırsız yapar.
162165
To downgrade your current version, please visit: Mevcut sürümünüzü düşürmek için lütfen şu adresi ziyaret edin
163166
'To downgrade, please visit: ': 'Sürümü düşürmek için lütfen şu adresi ziyaret edin:'
164167
To ensure the best detection accuracy, please select up to 7 languages. Limiting choices improves precision.: En iyi algılama doğruluğunu sağlamak için lütfen 7 dile kadar seçin. Seçenekleri sınırlamak hassasiyeti artırır.

packages/pastebar-app-ui/src/locales/lang/uk/common.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@ Make Enabled: Зробити увімкненим
127127
Make Inactive: Зробити неактивним
128128
Manage: Керування
129129
Maximum height: Висота максимум
130+
Maximum length: Максимум
130131
Maximum width: Ширина максимум
131132
Menu: Меню
133+
Minimum length: Мінімум
132134
Move Down: Перемістити вниз
133135
Move Up: Перемістити вгору
134136
Multi Select: Множинний вибір

packages/pastebar-app-ui/src/locales/lang/uk/settings.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Auto-delete clipboard history after: Автоматичне видалення
2828
: Автоматично створювати попередній перегляд посилань в історії буфера обміну. Це дозволяє швидко переглядати деталі веб-сайтів без відкриття або вставки посилання.
2929
Back: Назад
3030
Capture History: Захоплення історії буфера
31+
Capture History Text Length Limits: Обмеження довжини тексту історії буфера обміну
3132
Change the application UI font size scale: Змінити масштаб розміру шрифту інтерфейсу додатку
3233
Change the application UI language: Змінити мову інтерфейсу додатку
3334
Change the application user interface color theme: Змінити колірну тему інтерфейсу додатку
@@ -144,6 +145,8 @@ Thank you for testing! 🙌: Дякуємо за тестування! 🙌
144145
: Це налаштування дозволяє керувати відображенням та часом затримки спливаючих нотаток при наведенні на ім'я кліпу. Виберіть швидкий показ нотаток або з затримкою.
145146
? This option lets you customize the maximum width and height of the popup that displays clip notes, ensuring it fits comfortably within your desired size.
146147
: Це налаштування дає можливість задати максимальні розміри спливаючого вікна з нотатками до кліпів, щоб воно краще відповідало вашим вимогам.
148+
? This option lets you customize the minimum and maximum length of text that can be captured in the clipboard history. Setting either value to 0 makes that limit unlimited.
149+
: Це налаштування дозволяє налаштувати мінімальну та максимальну довжину тексту, який може бути захоплений в історію буфера обміну. Встановлення будь-якого значення на 0 робить цей ліміт необмеженим.
147150
'To downgrade, please visit: ': 'Щоб знайти попередні версії, відвідайте наступну сторінку: '
148151
To ensure the best detection accuracy, please select up to 7 languages. Limiting choices improves precision.: Для забезпечення найкращої точності визначення, будь ласка, виберіть до 7 мов. Обмеження вибору підвищує точність.
149152
Today: Сьогодні

packages/pastebar-app-ui/src/locales/lang/zhCN/common.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,10 @@ Make Enabled: 设为启用
132132
Make Inactive: 设为非活动
133133
Manage: 管理
134134
Maximum height: 最大高度
135+
Maximum length: 最大长度
135136
Maximum width: 最大宽度
136137
Menu: 菜单
138+
Minimum length: 最小长度
137139
Move Down: 向下移动
138140
Move Up: 向上移动
139141
Multi Select: 多选

0 commit comments

Comments
 (0)