An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: Support configuring format painter notifications https://github.com/siyuan-note/siyuan/issues/12732
Danielc690f9218bcb
diff --git a/app/appearance/langs/ar.json b/app/appearance/langs/ar.jsonindex 21c1cfd2bb..2d177d21c3 100644--- a/app/appearance/langs/ar.json+++ b/app/appearance/langs/ar.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "إشعارات تنشيط نسخ التنسيق والخروج منه",+ "formatPainterInactive": "تم إلغاء تنشيط نسخ التنسيق","pluginDisabledInPublishTip": "عطّل مؤلف الإضافة هذه الإضافة في خدمة النشر","formatPainter": "نسخ التنسيق","formatPainterContinuous": "نسخ التنسيق المستمر",- "formatPainterActive": "نسخ التنسيق نشط؛ انقر للخروج",- "formatPainterContinuousActive": "نسخ التنسيق المستمر نشط؛ انقر للخروج",+ "formatPainterActive": "نسخ التنسيق نشط؛ حدد نصًا لتطبيق التنسيق، واضغط Esc للخروج",+ "formatPainterContinuousActive": "نسخ التنسيق المستمر نشط؛ حدد نصًا لتطبيق التنسيق، واضغط Esc للخروج","aiMcpEnv": "متغيرات البيئة","aiMcpEnvTip": "تُمرر الأسرار المشار إليها إلى هذا البرنامج، وتُخزن القيم المدخلة مباشرة كنص عادي","aiMcpEnvInvalid": "متغيرات البيئة غير صالحة؛ تحقق من الأسماء الفارغة أو المكررة أو غير الصالحة",diff --git a/app/appearance/langs/de.json b/app/appearance/langs/de.jsonindex f31e707845..4eb14385b5 100644--- a/app/appearance/langs/de.json+++ b/app/appearance/langs/de.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "Benachrichtigungen beim Aktivieren und Beenden der Formatübertragung",+ "formatPainterInactive": "Formatübertragung deaktiviert","pluginDisabledInPublishTip": "Der Plugin-Autor hat dieses Plugin im Veröffentlichungsdienst deaktiviert","formatPainter": "Format übertragen","formatPainterContinuous": "Format fortlaufend übertragen",- "formatPainterActive": "Formatübertragung aktiv; zum Beenden klicken",- "formatPainterContinuousActive": "Fortlaufende Formatübertragung aktiv; zum Beenden klicken",+ "formatPainterActive": "Formatübertragung aktiv; Text zum Anwenden auswählen und Esc zum Beenden drücken",+ "formatPainterContinuousActive": "Fortlaufende Formatübertragung aktiv; Text zum Anwenden auswählen und Esc zum Beenden drücken","aiMcpEnv": "Umgebungsvariablen","aiMcpEnvTip": "Referenzierte Geheimnisse werden diesem Programm bereitgestellt, direkt eingegebene Werte werden im Klartext gespeichert","aiMcpEnvInvalid": "Ungültige Umgebungsvariablen; prüfen Sie auf leere, doppelte oder ungültige Namen",diff --git a/app/appearance/langs/en.json b/app/appearance/langs/en.jsonindex 71716c47d9..af4410a893 100644--- a/app/appearance/langs/en.json+++ b/app/appearance/langs/en.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "Format Painter activation and exit notifications",+ "formatPainterInactive": "Format Painter deactivated","pluginDisabledInPublishTip": "The plugin author has disabled this plugin in the publish service","formatPainter": "Format Painter","formatPainterContinuous": "Continuous Format Painter",- "formatPainterActive": "Format Painter active; click to exit",- "formatPainterContinuousActive": "Continuous Format Painter active; click to exit",+ "formatPainterActive": "Format Painter active; select text to apply formatting and press Esc to exit",+ "formatPainterContinuousActive": "Continuous Format Painter active; select text to apply formatting and press Esc to exit","aiMcpEnv": "Environment variables","aiMcpEnvTip": "Referenced secrets are provided to this program, and direct values are stored in plaintext","aiMcpEnvInvalid": "Invalid environment variables; check for empty, duplicate, or invalid names",diff --git a/app/appearance/langs/es.json b/app/appearance/langs/es.jsonindex 59e7ddcac9..9017ff5b33 100644--- a/app/appearance/langs/es.json+++ b/app/appearance/langs/es.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "Notificaciones al activar y desactivar Copiar formato",+ "formatPainterInactive": "Copia de formato desactivada","pluginDisabledInPublishTip": "El autor del complemento ha deshabilitado este complemento en el servicio de publicación","formatPainter": "Copiar formato","formatPainterContinuous": "Copiar formato continuamente",- "formatPainterActive": "Copia de formato activa; haz clic para salir",- "formatPainterContinuousActive": "Copia continua de formato activa; haz clic para salir",+ "formatPainterActive": "Copia de formato activa; selecciona texto para aplicar el formato y pulsa Esc para salir",+ "formatPainterContinuousActive": "Copia continua de formato activa; selecciona texto para aplicar el formato y pulsa Esc para salir","aiMcpEnv": "Variables de entorno","aiMcpEnvTip": "Los secretos referenciados se proporcionan a este programa y los valores directos se almacenan como texto sin formato","aiMcpEnvInvalid": "Variables de entorno no válidas; compruebe si hay nombres vacíos, duplicados o no válidos",diff --git a/app/appearance/langs/fr.json b/app/appearance/langs/fr.jsonindex 524ce2a1f0..0f4082282f 100644--- a/app/appearance/langs/fr.json+++ b/app/appearance/langs/fr.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "Notifications d’activation et de désactivation de la reproduction de mise en forme",+ "formatPainterInactive": "Reproduction de la mise en forme désactivée","pluginDisabledInPublishTip": "L’auteur du plugin a désactivé ce plugin dans le service de publication","formatPainter": "Reproduire la mise en forme","formatPainterContinuous": "Reproduire la mise en forme en continu",- "formatPainterActive": "Reproduction de la mise en forme active ; cliquez pour quitter",- "formatPainterContinuousActive": "Reproduction continue de la mise en forme active ; cliquez pour quitter",+ "formatPainterActive": "Reproduction de la mise en forme active ; sélectionnez du texte pour appliquer la mise en forme, puis appuyez sur Esc pour quitter",+ "formatPainterContinuousActive": "Reproduction continue de la mise en forme active ; sélectionnez du texte pour appliquer la mise en forme, puis appuyez sur Esc pour quitter","aiMcpEnv": "Variables d'environnement","aiMcpEnvTip": "Les secrets référencés sont fournis à ce programme et les valeurs saisies directement sont stockées en texte brut","aiMcpEnvInvalid": "Variables d'environnement non valides ; vérifiez les noms vides, dupliqués ou non valides",diff --git a/app/appearance/langs/he.json b/app/appearance/langs/he.jsonindex dff5f5cb7f..5d217042bc 100644--- a/app/appearance/langs/he.json+++ b/app/appearance/langs/he.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "התראות על הפעלה ויציאה ממברשת העיצוב",+ "formatPainterInactive": "מברשת העיצוב הושבתה","pluginDisabledInPublishTip": "מחבר התוסף השבית תוסף זה בשירות הפרסום","formatPainter": "מברשת עיצוב","formatPainterContinuous": "מברשת עיצוב רציפה",- "formatPainterActive": "מברשת העיצוב פעילה; לחיצה תסיים",- "formatPainterContinuousActive": "מברשת העיצוב הרציפה פעילה; לחיצה תסיים",+ "formatPainterActive": "מברשת העיצוב פעילה; יש לבחור טקסט להחלת העיצוב וללחוץ על Esc כדי לצאת",+ "formatPainterContinuousActive": "מברשת העיצוב הרציפה פעילה; יש לבחור טקסט להחלת העיצוב וללחוץ על Esc כדי לצאת","aiMcpEnv": "משתני סביבה","aiMcpEnvTip": "סודות שמופנים יועברו לתוכנית זו, וערכים שיוזנו ישירות יישמרו כטקסט גלוי","aiMcpEnvInvalid": "משתני הסביבה אינם תקינים; יש לבדוק שמות ריקים, כפולים או לא תקינים",diff --git a/app/appearance/langs/hi.json b/app/appearance/langs/hi.jsonindex 2c2681e213..e9e863b2ff 100644--- a/app/appearance/langs/hi.json+++ b/app/appearance/langs/hi.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "फ़ॉर्मैट पेंटर चालू करने और बाहर निकलने की सूचनाएँ",+ "formatPainterInactive": "फ़ॉर्मैट पेंटर निष्क्रिय कर दिया गया है","pluginDisabledInPublishTip": "प्लगइन लेखक ने इस प्लगइन को प्रकाशन सेवा में अक्षम किया है","formatPainter": "फ़ॉर्मैट पेंटर","formatPainterContinuous": "निरंतर फ़ॉर्मैट पेंटर",- "formatPainterActive": "फ़ॉर्मैट पेंटर सक्रिय है; बाहर निकलने के लिए क्लिक करें",- "formatPainterContinuousActive": "निरंतर फ़ॉर्मैट पेंटर सक्रिय है; बाहर निकलने के लिए क्लिक करें",+ "formatPainterActive": "फ़ॉर्मैट पेंटर सक्रिय है; फ़ॉर्मैट लागू करने के लिए टेक्स्ट चुनें और बाहर निकलने के लिए Esc दबाएँ",+ "formatPainterContinuousActive": "निरंतर फ़ॉर्मैट पेंटर सक्रिय है; फ़ॉर्मैट लागू करने के लिए टेक्स्ट चुनें और बाहर निकलने के लिए Esc दबाएँ","aiMcpEnv": "पर्यावरण चर","aiMcpEnvTip": "संदर्भित रहस्य इस प्रोग्राम को दिए जाते हैं और सीधे दर्ज किए गए मान सादे पाठ में संग्रहीत होते हैं","aiMcpEnvInvalid": "पर्यावरण चर अमान्य हैं; खाली, डुप्लिकेट या अमान्य नामों की जाँच करें",diff --git a/app/appearance/langs/id.json b/app/appearance/langs/id.jsonindex 08c47c166c..6c30adf38e 100644--- a/app/appearance/langs/id.json+++ b/app/appearance/langs/id.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "Notifikasi aktivasi dan keluar penyalinan format",+ "formatPainterInactive": "Penyalinan format dinonaktifkan","pluginDisabledInPublishTip": "Pembuat plugin telah menonaktifkan plugin ini di layanan penerbitan","formatPainter": "Salin format","formatPainterContinuous": "Salin format berkelanjutan",- "formatPainterActive": "Penyalinan format aktif; klik untuk keluar",- "formatPainterContinuousActive": "Penyalinan format berkelanjutan aktif; klik untuk keluar",+ "formatPainterActive": "Penyalinan format aktif; pilih teks untuk menerapkan format, lalu tekan Esc untuk keluar",+ "formatPainterContinuousActive": "Penyalinan format berkelanjutan aktif; pilih teks untuk menerapkan format, lalu tekan Esc untuk keluar","aiMcpEnv": "Variabel lingkungan","aiMcpEnvTip": "Rahasia yang dirujuk diberikan kepada program ini dan nilai yang dimasukkan langsung disimpan sebagai teks biasa","aiMcpEnvInvalid": "Variabel lingkungan tidak valid; periksa nama yang kosong, duplikat, atau tidak valid",diff --git a/app/appearance/langs/it.json b/app/appearance/langs/it.jsonindex e80420eb36..c88e6592da 100644--- a/app/appearance/langs/it.json+++ b/app/appearance/langs/it.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "Notifiche di attivazione e uscita di Copia formato",+ "formatPainterInactive": "Copia formato disattivata","pluginDisabledInPublishTip": "L'autore del plugin ha disabilitato questo plugin nel servizio di pubblicazione","formatPainter": "Copia formato","formatPainterContinuous": "Copia formato continua",- "formatPainterActive": "Copia formato attiva; fai clic per uscire",- "formatPainterContinuousActive": "Copia formato continua attiva; fai clic per uscire",+ "formatPainterActive": "Copia formato attiva; seleziona il testo per applicare il formato e premi Esc per uscire",+ "formatPainterContinuousActive": "Copia formato continua attiva; seleziona il testo per applicare il formato e premi Esc per uscire","aiMcpEnv": "Variabili d'ambiente","aiMcpEnvTip": "I segreti referenziati vengono forniti a questo programma e i valori inseriti direttamente vengono archiviati in testo semplice","aiMcpEnvInvalid": "Variabili d'ambiente non valide; verifica la presenza di nomi vuoti, duplicati o non validi",diff --git a/app/appearance/langs/ja.json b/app/appearance/langs/ja.jsonindex e83900de09..b3ba5803a2 100644--- a/app/appearance/langs/ja.json+++ b/app/appearance/langs/ja.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "書式のコピーの有効化と終了の通知",+ "formatPainterInactive": "書式のコピーを終了しました","pluginDisabledInPublishTip": "プラグインの作者が公開サービスでこのプラグインを無効にしています","formatPainter": "書式のコピー","formatPainterContinuous": "書式の連続コピー",- "formatPainterActive": "書式のコピーが有効です。クリックして終了",- "formatPainterContinuousActive": "書式の連続コピーが有効です。クリックして終了",+ "formatPainterActive": "書式のコピーが有効です。書式を適用するテキストを選択し、Esc キーで終了します",+ "formatPainterContinuousActive": "書式の連続コピーが有効です。書式を適用するテキストを選択し、Esc キーで終了します","aiMcpEnv": "環境変数","aiMcpEnvTip": "参照したシークレットはこのプログラムに渡され、直接入力した値は平文で保存されます","aiMcpEnvInvalid": "環境変数が無効です。名前が空、重複、または無効な文字を含んでいないか確認してください",diff --git a/app/appearance/langs/ko.json b/app/appearance/langs/ko.jsonindex 447414ba0f..3b196afa33 100644--- a/app/appearance/langs/ko.json+++ b/app/appearance/langs/ko.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "서식 복사 활성화 및 종료 알림",+ "formatPainterInactive": "서식 복사가 비활성화됨","pluginDisabledInPublishTip": "플러그인 작성자가 게시 서비스에서 이 플러그인을 비활성화했습니다","formatPainter": "서식 복사","formatPainterContinuous": "서식 연속 복사",- "formatPainterActive": "서식 복사가 활성화됨; 종료하려면 클릭",- "formatPainterContinuousActive": "서식 연속 복사가 활성화됨; 종료하려면 클릭",+ "formatPainterActive": "서식 복사가 활성화됨; 서식을 적용할 텍스트를 선택하고 Esc 키를 눌러 종료",+ "formatPainterContinuousActive": "서식 연속 복사가 활성화됨; 서식을 적용할 텍스트를 선택하고 Esc 키를 눌러 종료","aiMcpEnv": "환경 변수","aiMcpEnvTip": "참조된 비밀은 이 프로그램에 제공되며 직접 입력한 값은 일반 텍스트로 저장됩니다","aiMcpEnvInvalid": "환경 변수가 잘못되었습니다. 비어 있거나 중복되거나 잘못된 이름이 있는지 확인하세요",diff --git a/app/appearance/langs/nl.json b/app/appearance/langs/nl.jsonindex 4a580592c3..ccacb40e49 100644--- a/app/appearance/langs/nl.json+++ b/app/appearance/langs/nl.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "Meldingen bij activeren en afsluiten van Opmaak kopiëren",+ "formatPainterInactive": "Opmaak kopiëren uitgeschakeld","pluginDisabledInPublishTip": "De auteur van de plug-in heeft deze plug-in uitgeschakeld in de publicatieservice","formatPainter": "Opmaak kopiëren","formatPainterContinuous": "Opmaak doorlopend kopiëren",- "formatPainterActive": "Opmaak kopiëren is actief; klik om af te sluiten",- "formatPainterContinuousActive": "Opmaak doorlopend kopiëren is actief; klik om af te sluiten",+ "formatPainterActive": "Opmaak kopiëren is actief; selecteer tekst om de opmaak toe te passen en druk op Esc om af te sluiten",+ "formatPainterContinuousActive": "Opmaak doorlopend kopiëren is actief; selecteer tekst om de opmaak toe te passen en druk op Esc om af te sluiten","aiMcpEnv": "Omgevingsvariabelen","aiMcpEnvTip": "Geheimen waarnaar wordt verwezen worden aan dit programma verstrekt en rechtstreeks ingevoerde waarden worden als platte tekst opgeslagen","aiMcpEnvInvalid": "Ongeldige omgevingsvariabelen; controleer op lege, dubbele of ongeldige namen",diff --git a/app/appearance/langs/pl.json b/app/appearance/langs/pl.jsonindex 9c298d151d..898a23ed52 100644--- a/app/appearance/langs/pl.json+++ b/app/appearance/langs/pl.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "Powiadomienia o włączeniu i wyłączeniu Malarza formatów",+ "formatPainterInactive": "Malarz formatów wyłączony","pluginDisabledInPublishTip": "Autor wtyczki wyłączył tę wtyczkę w usłudze publikowania","formatPainter": "Malarz formatów","formatPainterContinuous": "Ciągły malarz formatów",- "formatPainterActive": "Malarz formatów jest aktywny; kliknij, aby zakończyć",- "formatPainterContinuousActive": "Ciągły malarz formatów jest aktywny; kliknij, aby zakończyć",+ "formatPainterActive": "Malarz formatów jest aktywny; zaznacz tekst, aby zastosować formatowanie, i naciśnij Esc, aby zakończyć",+ "formatPainterContinuousActive": "Ciągły malarz formatów jest aktywny; zaznacz tekst, aby zastosować formatowanie, i naciśnij Esc, aby zakończyć","aiMcpEnv": "Zmienne środowiskowe","aiMcpEnvTip": "Wskazane sekrety są udostępniane temu programowi, a wartości wpisane bezpośrednio są przechowywane jako zwykły tekst","aiMcpEnvInvalid": "Nieprawidłowe zmienne środowiskowe; sprawdź puste, zduplikowane lub nieprawidłowe nazwy",diff --git a/app/appearance/langs/pt-BR.json b/app/appearance/langs/pt-BR.jsonindex b0ceae05e4..ab30318af9 100644--- a/app/appearance/langs/pt-BR.json+++ b/app/appearance/langs/pt-BR.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "Notificações ao ativar e sair do Pincel de formatação",+ "formatPainterInactive": "Pincel de formatação desativado","pluginDisabledInPublishTip": "O autor do plugin desativou este plugin no serviço de publicação","formatPainter": "Pincel de formatação","formatPainterContinuous": "Pincel de formatação contínuo",- "formatPainterActive": "Pincel de formatação ativo; clique para sair",- "formatPainterContinuousActive": "Pincel de formatação contínuo ativo; clique para sair",+ "formatPainterActive": "Pincel de formatação ativo; selecione o texto para aplicar a formatação e pressione Esc para sair",+ "formatPainterContinuousActive": "Pincel de formatação contínuo ativo; selecione o texto para aplicar a formatação e pressione Esc para sair","aiMcpEnv": "Variáveis de ambiente","aiMcpEnvTip": "Os segredos referenciados são fornecidos a este programa e os valores inseridos diretamente são armazenados como texto simples","aiMcpEnvInvalid": "Variáveis de ambiente inválidas; verifique se há nomes vazios, duplicados ou inválidos",diff --git a/app/appearance/langs/ru.json b/app/appearance/langs/ru.jsonindex 11054e4b93..c58ab3e51d 100644--- a/app/appearance/langs/ru.json+++ b/app/appearance/langs/ru.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "Уведомления о включении и отключении формата по образцу",+ "formatPainterInactive": "Формат по образцу отключён","pluginDisabledInPublishTip": "Автор плагина отключил этот плагин в службе публикации","formatPainter": "Формат по образцу","formatPainterContinuous": "Непрерывный формат по образцу",- "formatPainterActive": "Формат по образцу активен; нажмите, чтобы выйти",- "formatPainterContinuousActive": "Непрерывный формат по образцу активен; нажмите, чтобы выйти",+ "formatPainterActive": "Формат по образцу активен; выделите текст, чтобы применить форматирование, и нажмите Esc для выхода",+ "formatPainterContinuousActive": "Непрерывный формат по образцу активен; выделите текст, чтобы применить форматирование, и нажмите Esc для выхода","aiMcpEnv": "Переменные окружения","aiMcpEnvTip": "Указанные секреты передаются этой программе, а введённые напрямую значения хранятся в открытом виде","aiMcpEnvInvalid": "Недопустимые переменные окружения; проверьте пустые, повторяющиеся или недопустимые имена",diff --git a/app/appearance/langs/sk.json b/app/appearance/langs/sk.jsonindex 8ec5e3c40e..140a2e357f 100644--- a/app/appearance/langs/sk.json+++ b/app/appearance/langs/sk.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "Upozornenia na aktiváciu a ukončenie kopírovania formátu",+ "formatPainterInactive": "Kopírovanie formátu je deaktivované","pluginDisabledInPublishTip": "Autor doplnku zakázal tento doplnok v publikačnej službe","formatPainter": "Kopírovať formát","formatPainterContinuous": "Kopírovať formát nepretržite",- "formatPainterActive": "Kopírovanie formátu je aktívne; kliknutím ho ukončíte",- "formatPainterContinuousActive": "Nepretržité kopírovanie formátu je aktívne; kliknutím ho ukončíte",+ "formatPainterActive": "Kopírovanie formátu je aktívne; vyberte text, na ktorý chcete použiť formátovanie, a stlačením Esc ho ukončíte",+ "formatPainterContinuousActive": "Nepretržité kopírovanie formátu je aktívne; vyberte text, na ktorý chcete použiť formátovanie, a stlačením Esc ho ukončíte","aiMcpEnv": "Premenné prostredia","aiMcpEnvTip": "Odkazované tajomstvá sa poskytnú tomuto programu a priamo zadané hodnoty sa uložia ako obyčajný text","aiMcpEnvInvalid": "Neplatné premenné prostredia; skontrolujte prázdne, duplicitné alebo neplatné názvy",diff --git a/app/appearance/langs/th.json b/app/appearance/langs/th.jsonindex bb1b7f5e83..7b2e69767a 100644--- a/app/appearance/langs/th.json+++ b/app/appearance/langs/th.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "การแจ้งเตือนเมื่อเปิดและออกจากการคัดลอกรูปแบบ",+ "formatPainterInactive": "ปิดการคัดลอกรูปแบบแล้ว","pluginDisabledInPublishTip": "ผู้เขียนปลั๊กอินได้ปิดใช้งานปลั๊กอินนี้ในบริการเผยแพร่","formatPainter": "คัดลอกรูปแบบ","formatPainterContinuous": "คัดลอกรูปแบบต่อเนื่อง",- "formatPainterActive": "การคัดลอกรูปแบบเปิดอยู่; คลิกเพื่อออก",- "formatPainterContinuousActive": "การคัดลอกรูปแบบต่อเนื่องเปิดอยู่; คลิกเพื่อออก",+ "formatPainterActive": "การคัดลอกรูปแบบเปิดอยู่; เลือกข้อความเพื่อใช้รูปแบบ แล้วกด Esc เพื่อออก",+ "formatPainterContinuousActive": "การคัดลอกรูปแบบต่อเนื่องเปิดอยู่; เลือกข้อความเพื่อใช้รูปแบบ แล้วกด Esc เพื่อออก","aiMcpEnv": "ตัวแปรสภาพแวดล้อม","aiMcpEnvTip": "ข้อมูลลับที่อ้างอิงจะถูกส่งให้โปรแกรมนี้ และค่าที่ป้อนโดยตรงจะถูกจัดเก็บเป็นข้อความธรรมดา","aiMcpEnvInvalid": "ตัวแปรสภาพแวดล้อมไม่ถูกต้อง โปรดตรวจสอบชื่อที่ว่าง ซ้ำ หรือไม่ถูกต้อง",diff --git a/app/appearance/langs/tr.json b/app/appearance/langs/tr.jsonindex 84246c2c60..1314bfb618 100644--- a/app/appearance/langs/tr.json+++ b/app/appearance/langs/tr.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "Biçim Boyacısını etkinleştirme ve kapatma bildirimleri",+ "formatPainterInactive": "Biçim Boyacısı devre dışı bırakıldı","pluginDisabledInPublishTip": "Eklenti yazarı bu eklentiyi yayımlama hizmetinde devre dışı bıraktı","formatPainter": "Biçim Boyacısı","formatPainterContinuous": "Sürekli Biçim Boyacısı",- "formatPainterActive": "Biçim Boyacısı etkin; çıkmak için tıklayın",- "formatPainterContinuousActive": "Sürekli Biçim Boyacısı etkin; çıkmak için tıklayın",+ "formatPainterActive": "Biçim Boyacısı etkin; biçimi uygulamak için metni seçin ve çıkmak için Esc tuşuna basın",+ "formatPainterContinuousActive": "Sürekli Biçim Boyacısı etkin; biçimi uygulamak için metni seçin ve çıkmak için Esc tuşuna basın","aiMcpEnv": "Ortam değişkenleri","aiMcpEnvTip": "Başvurulan gizli bilgiler bu programa sağlanır ve doğrudan girilen değerler düz metin olarak saklanır","aiMcpEnvInvalid": "Geçersiz ortam değişkenleri; boş, yinelenen veya geçersiz adları kontrol edin",diff --git a/app/appearance/langs/uk.json b/app/appearance/langs/uk.jsonindex 61e18aa775..709b256092 100644--- a/app/appearance/langs/uk.json+++ b/app/appearance/langs/uk.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "Сповіщення про ввімкнення та вимкнення формату за зразком",+ "formatPainterInactive": "Формат за зразком вимкнено","pluginDisabledInPublishTip": "Автор плагіна вимкнув цей плагін у службі публікації","formatPainter": "Формат за зразком","formatPainterContinuous": "Безперервний формат за зразком",- "formatPainterActive": "Формат за зразком активний; натисніть, щоб вийти",- "formatPainterContinuousActive": "Безперервний формат за зразком активний; натисніть, щоб вийти",+ "formatPainterActive": "Формат за зразком активний; виділіть текст, щоб застосувати форматування, і натисніть Esc для виходу",+ "formatPainterContinuousActive": "Безперервний формат за зразком активний; виділіть текст, щоб застосувати форматування, і натисніть Esc для виходу","aiMcpEnv": "Змінні середовища","aiMcpEnvTip": "Указані секрети передаються цій програмі, а введені безпосередньо значення зберігаються як звичайний текст","aiMcpEnvInvalid": "Недопустимі змінні середовища; перевірте порожні, повторювані або недопустимі назви",diff --git a/app/appearance/langs/zh-CN.json b/app/appearance/langs/zh-CN.jsonindex 0297ec9ccc..8cdff62e78 100644--- a/app/appearance/langs/zh-CN.json+++ b/app/appearance/langs/zh-CN.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "格式刷启用和退出提示",+ "formatPainterInactive": "格式刷已退出","pluginDisabledInPublishTip": "插件作者已禁止该插件在发布服务中运行","formatPainter": "格式刷","formatPainterContinuous": "连续格式刷",- "formatPainterActive": "格式刷已启用,点击退出",- "formatPainterContinuousActive": "连续格式刷已启用,点击退出",+ "formatPainterActive": "格式刷已启用,选择文本应用格式,按 Esc 退出",+ "formatPainterContinuousActive": "连续格式刷已启用,选择文本应用格式,按 Esc 退出","aiMcpEnv": "环境变量","aiMcpEnvTip": "引用的密钥会提供给该程序,直接填写的值将以明文存储","aiMcpEnvInvalid": "环境变量无效,请检查名称是否为空、重复或包含非法字符",diff --git a/app/appearance/langs/zh-TW.json b/app/appearance/langs/zh-TW.jsonindex 7ea892d11d..fac6382b92 100644--- a/app/appearance/langs/zh-TW.json+++ b/app/appearance/langs/zh-TW.json@@ -1,9 +1,11 @@{+ "msgFormatPainterTip": "格式刷啟用與退出提示",+ "formatPainterInactive": "格式刷已退出","pluginDisabledInPublishTip": "插件作者已禁止該插件在發布服務中執行","formatPainter": "格式刷","formatPainterContinuous": "連續格式刷",- "formatPainterActive": "格式刷已啟用,點擊退出",- "formatPainterContinuousActive": "連續格式刷已啟用,點擊退出",+ "formatPainterActive": "格式刷已啟用,選取文字套用格式,按 Esc 退出",+ "formatPainterContinuousActive": "連續格式刷已啟用,選取文字套用格式,按 Esc 退出","aiMcpEnv": "環境變數","aiMcpEnvTip": "引用的金鑰會提供給該程式,直接填寫的值將以明文儲存","aiMcpEnvInvalid": "環境變數無效,請檢查名稱是否為空、重複或包含無效字元",diff --git a/app/src/config/tabs/appearanceTab.ts b/app/src/config/tabs/appearanceTab.tsindex 897f417581..5af468b417 100644--- a/app/src/config/tabs/appearanceTab.ts+++ b/app/src/config/tabs/appearanceTab.ts@@ -523,6 +523,7 @@ const registerAppearanceControlsGroup = (tab: SettingTabBuilder) => {window.siyuan.languages.msgBrowserCompatibility,window.siyuan.languages.msgSelectAllTip,window.siyuan.languages.msgSelectAllIncompleteTip,+ window.siyuan.languages.msgFormatPainterTip,],afterMount: mountAppearanceSetNotifications,});@@ -659,7 +660,7 @@ const mountAppearanceSetStatusBar = (root: HTMLElement) => {const NOTIFICATIONS_ITEMS: {field: keyof Config.IAppearanceNotifications;labelKey: "msgDocTreeMaxList" | "msgTagMaxList" | "msgWorkspaceNotSSD" | "msgBrowserCompatibility" |- "msgSelectAllTip" | "msgSelectAllIncompleteTip";+ "msgSelectAllTip" | "msgSelectAllIncompleteTip" | "msgFormatPainterTip";}[] = [{field: "docTreeMaxList", labelKey: "msgDocTreeMaxList"},{field: "tagMaxList", labelKey: "msgTagMaxList"},@@ -667,6 +668,7 @@ const NOTIFICATIONS_ITEMS: {{field: "browserCompatibility", labelKey: "msgBrowserCompatibility"},{field: "selectAllTip", labelKey: "msgSelectAllTip"},{field: "selectAllIncompleteTip", labelKey: "msgSelectAllIncompleteTip"},+ {field: "formatPainterTip", labelKey: "msgFormatPainterTip"},];const genNotificationsDialogHtml = (): string => {@@ -691,6 +693,7 @@ const readNotificationsFromDialog = (root: HTMLElement): Config.IAppearanceNotifbrowserCompatibility: (root.querySelector("#browserCompatibility") as HTMLInputElement).checked,selectAllTip: (root.querySelector("#selectAllTip") as HTMLInputElement).checked,selectAllIncompleteTip: (root.querySelector("#selectAllIncompleteTip") as HTMLInputElement).checked,+ formatPainterTip: (root.querySelector("#formatPainterTip") as HTMLInputElement).checked,};};diff --git a/app/src/protyle/toolbar/FormatPainter.ts b/app/src/protyle/toolbar/FormatPainter.tsindex ea0e4e95a0..3a5a96976d 100644--- a/app/src/protyle/toolbar/FormatPainter.ts+++ b/app/src/protyle/toolbar/FormatPainter.ts@@ -1,4 +1,5 @@import {Constants} from "../../constants";+import {showMessage} from "../../dialog/message";import {MenuItem} from "../../menus/Menu";import {getBlockRanges} from "../util/selection";import {@@ -8,6 +9,7 @@ import {IFormatPainterSnapshot,IFormatPainterStyle,shouldKeepFormatPainterActive,+ shouldShowFormatPainterMessage,TFormatPainterMode,} from "./formatPainterCore";@@ -65,6 +67,12 @@ class FormatPainterController {private mode?: TFormatPainterMode;private snapshot?: IFormatPainterSnapshot;+ private showMessage(message: string, timeout: number) {+ if (shouldShowFormatPainterMessage(window.siyuan.config.appearance.notifications?.formatPainterTip)) {+ showMessage(message, timeout, "info", "formatPainter");+ }+ }+public isActive() {return !!this.mode && !!this.snapshot;}@@ -81,6 +89,8 @@ class FormatPainterController {this.snapshot = snapshot;document.body.dataset.formatPainter = mode;this.renderStatus();+ this.showMessage(mode === "continuous" ? window.siyuan.languages.formatPainterContinuousActive :+ window.siyuan.languages.formatPainterActive, 4000);protyle.toolbar.element.classList.add("fn__none");return true;}@@ -109,6 +119,7 @@ class FormatPainterController {this.snapshot = undefined;delete document.body.dataset.formatPainter;document.getElementById("statusFormatPainter")?.remove();+ this.showMessage(window.siyuan.languages.formatPainterInactive, 3000);return true;}diff --git a/app/src/protyle/toolbar/formatPainter.test.ts b/app/src/protyle/toolbar/formatPainter.test.tsindex 8671919fa4..6f9a140146 100644--- a/app/src/protyle/toolbar/formatPainter.test.ts+++ b/app/src/protyle/toolbar/formatPainter.test.ts@@ -1,6 +1,10 @@import {describe, it} from "node:test";import * as assert from "node:assert/strict";-import {getCommonFormatPainterSnapshot, shouldKeepFormatPainterActive} from "./formatPainterCore";+import {+ getCommonFormatPainterSnapshot,+ shouldKeepFormatPainterActive,+ shouldShowFormatPainterMessage,+} from "./formatPainterCore";describe("getCommonFormatPainterSnapshot", () => {it("keeps only formats shared by every selected text segment", () => {@@ -47,3 +51,11 @@ describe("shouldKeepFormatPainterActive", () => {assert.equal(shouldKeepFormatPainterActive("continuous"), true);});});++describe("shouldShowFormatPainterMessage", () => {+ it("defaults to enabled and respects an explicit disabled setting", () => {+ assert.equal(shouldShowFormatPainterMessage(undefined), true);+ assert.equal(shouldShowFormatPainterMessage(true), true);+ assert.equal(shouldShowFormatPainterMessage(false), false);+ });+});diff --git a/app/src/protyle/toolbar/formatPainterCore.ts b/app/src/protyle/toolbar/formatPainterCore.tsindex 25c20510df..5041ad2a6f 100644--- a/app/src/protyle/toolbar/formatPainterCore.ts+++ b/app/src/protyle/toolbar/formatPainterCore.ts@@ -10,6 +10,8 @@ export type TFormatPainterMode = "once" | "continuous";export const shouldKeepFormatPainterActive = (mode: TFormatPainterMode) => mode === "continuous";+export const shouldShowFormatPainterMessage = (enabled?: boolean) => enabled !== false;+export interface IFormatPainterSnapshot {styles: IFormatPainterStyle;types: string[];diff --git a/app/src/types/config.d.ts b/app/src/types/config.d.tsindex e4d875f147..e764f3281a 100644--- a/app/src/types/config.d.ts+++ b/app/src/types/config.d.ts@@ -410,6 +410,7 @@ declare namespace Config {browserCompatibility: boolean;selectAllTip?: boolean;selectAllIncompleteTip?: boolean;+ formatPainterTip?: boolean;}/**diff --git a/kernel/util/appearance.go b/kernel/util/appearance.goindex 079f00ebda..b92cc70ff4 100644--- a/kernel/util/appearance.go+++ b/kernel/util/appearance.go@@ -29,11 +29,12 @@ var StatusBarCfg *StatusBar// Notifications 外观通知开关配置。https://github.com/siyuan-note/siyuan/issues/17797// Appearance.Notifications 为 nil 时表示旧配置尚未迁移,整体按默认启用处理。type Notifications struct {- DocTreeMaxList bool `json:"docTreeMaxList"` // 文档面板展开上限提示,默认启用- TagMaxList bool `json:"tagMaxList"` // 标签面板展开上限提示,默认启用- WorkspaceNotSSD bool `json:"workspaceNotSSD"` // 工作空间未放置在固态硬盘警告,默认启用- BrowserCompatibility bool `json:"browserCompatibility"` // 浏览器兼容性提示,默认启用- SelectAllTip *bool `json:"selectAllTip,omitempty"` // 编辑器全选提示,nil 时默认启用+ DocTreeMaxList bool `json:"docTreeMaxList"` // 文档面板展开上限提示,默认启用+ TagMaxList bool `json:"tagMaxList"` // 标签面板展开上限提示,默认启用+ WorkspaceNotSSD bool `json:"workspaceNotSSD"` // 工作空间未放置在固态硬盘警告,默认启用+ BrowserCompatibility bool `json:"browserCompatibility"` // 浏览器兼容性提示,默认启用+ SelectAllTip *bool `json:"selectAllTip,omitempty"` // 编辑器全选提示,nil 时默认启用+ FormatPainterTip *bool `json:"formatPainterTip,omitempty"` // 格式刷启用和退出提示,nil 时默认启用}// NewNotifications 创建默认全部启用的通知配置。新增内置通知时在此统一调整默认值,避免多处分散。@@ -44,6 +45,7 @@ func NewNotifications() *Notifications {WorkspaceNotSSD: true,BrowserCompatibility: true,SelectAllTip: new(true),+ FormatPainterTip: new(true),}}diff --git a/kernel/util/appearance_test.go b/kernel/util/appearance_test.gonew file mode 100644index 0000000000..be005d563a--- /dev/null+++ b/kernel/util/appearance_test.go@@ -0,0 +1,10 @@+package util++import "testing"++func TestNewNotificationsEnablesFormatPainterTip(t *testing.T) {+ notifications := NewNotifications()+ if nil == notifications.FormatPainterTip || !*notifications.FormatPainterTip {+ t.Fatal("format painter notifications should be enabled by default")+ }+}