Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Use a switch for full block indicators https://github.com/siyuan-note/siyuan/issues/20647

Daniela4ab324ec024
diff --git a/app/appearance/langs/ar.json b/app/appearance/langs/ar.json
index d6e83dc225..6af0a1da9a 100644
--- a/app/appearance/langs/ar.json
+++ b/app/appearance/langs/ar.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "مطابق",
"automationCollectionUnmatched": "غير مطابق",
"automationCollectionUnknown": "يتعذر التحديد",
- "blockGutterMode": "وضع مؤشرات الكتل",
- "blockGutterModeTip": "الوضع المختصر هو الافتراضي؛ يعرض الوضع الكامل مؤشرات الكتلة الحالية وجميع حاوياتها",
- "blockGutterCompact": "مختصر",
- "blockGutterFull": "كامل",
+ "blockGutterMode": "إظهار مؤشرات الكتل كاملة",
+ "blockGutterModeTip": "عند التفعيل، تظهر جميع مؤشرات الكتلة الحالية وحاوياتها، وعند التعطيل يكون العرض مختصرًا",
"automationCollectionTarget": "هدف التجميع",
"automationCollectionTargetBlock": "الكتلة التي تحتوي على الوسم",
"automationCollectionTargetContainer": "كتلة الحاوية",
diff --git a/app/appearance/langs/de.json b/app/appearance/langs/de.json
index 8c255d4f7b..20caeea26d 100644
--- a/app/appearance/langs/de.json
+++ b/app/appearance/langs/de.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "Passend",
"automationCollectionUnmatched": "Nicht passend",
"automationCollectionUnknown": "Nicht bestimmbar",
- "blockGutterMode": "Modus der Blockmarkierungen",
- "blockGutterModeTip": "Standardmäßig kompakt; der vollständige Modus zeigt Markierungen für den aktuellen Block und alle seine Container",
- "blockGutterCompact": "Kompakt",
- "blockGutterFull": "Vollständig",
+ "blockGutterMode": "Vollständige Blockmarkierungen anzeigen",
+ "blockGutterModeTip": "Zeigt bei Aktivierung alle Markierungen des aktuellen Blocks und seiner Container an; bei Deaktivierung wird eine vereinfachte Darstellung verwendet",
"automationCollectionTarget": "Sammelziel",
"automationCollectionTargetBlock": "Block mit dem Tag",
"automationCollectionTargetContainer": "Containerblock",
diff --git a/app/appearance/langs/en.json b/app/appearance/langs/en.json
index de5b09b566..a4e0700411 100644
--- a/app/appearance/langs/en.json
+++ b/app/appearance/langs/en.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "Matching",
"automationCollectionUnmatched": "Not matching",
"automationCollectionUnknown": "Cannot determine",
- "blockGutterMode": "Block indicator mode",
- "blockGutterModeTip": "Compact by default; full mode shows indicators for the current block and all its containers",
- "blockGutterCompact": "Compact",
- "blockGutterFull": "Full",
+ "blockGutterMode": "Show full block indicators",
+ "blockGutterModeTip": "When enabled, shows all indicators for the current block and its containers; when disabled, uses a simplified display",
"automationCollectionTarget": "Collect",
"automationCollectionTargetBlock": "Block containing the tag",
"automationCollectionTargetContainer": "Container block",
diff --git a/app/appearance/langs/es.json b/app/appearance/langs/es.json
index 24987080cd..8f737dee2f 100644
--- a/app/appearance/langs/es.json
+++ b/app/appearance/langs/es.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "Coincide",
"automationCollectionUnmatched": "No coincide",
"automationCollectionUnknown": "No se puede determinar",
- "blockGutterMode": "Modo de indicadores de bloque",
- "blockGutterModeTip": "Compacto por defecto; el modo completo muestra los indicadores del bloque actual y de todos sus contenedores",
- "blockGutterCompact": "Compacto",
- "blockGutterFull": "Completo",
+ "blockGutterMode": "Mostrar todos los indicadores de bloque",
+ "blockGutterModeTip": "Al activarlo, se muestran todos los indicadores del bloque actual y sus contenedores; al desactivarlo, se usa una visualización simplificada",
"automationCollectionTarget": "Objeto de recopilación",
"automationCollectionTargetBlock": "Bloque que contiene la etiqueta",
"automationCollectionTargetContainer": "Bloque contenedor",
diff --git a/app/appearance/langs/fr.json b/app/appearance/langs/fr.json
index 4109faab9c..cb1530eb2c 100644
--- a/app/appearance/langs/fr.json
+++ b/app/appearance/langs/fr.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "Correspond",
"automationCollectionUnmatched": "Ne correspond pas",
"automationCollectionUnknown": "Indéterminé",
- "blockGutterMode": "Mode des indicateurs de bloc",
- "blockGutterModeTip": "Compact par défaut ; le mode complet affiche les indicateurs du bloc actuel et de tous ses conteneurs",
- "blockGutterCompact": "Compact",
- "blockGutterFull": "Complet",
+ "blockGutterMode": "Afficher tous les indicateurs de bloc",
+ "blockGutterModeTip": "Lorsque cette option est activée, affiche tous les indicateurs du bloc actuel et de ses conteneurs ; sinon, utilise un affichage simplifié",
"automationCollectionTarget": "Objet à collecter",
"automationCollectionTargetBlock": "Bloc contenant l’étiquette",
"automationCollectionTargetContainer": "Bloc conteneur",
diff --git a/app/appearance/langs/he.json b/app/appearance/langs/he.json
index 3a6b553e00..c041296584 100644
--- a/app/appearance/langs/he.json
+++ b/app/appearance/langs/he.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "תואם",
"automationCollectionUnmatched": "אינו תואם",
"automationCollectionUnknown": "לא ניתן לקבוע",
- "blockGutterMode": "מצב סמני בלוקים",
- "blockGutterModeTip": "מצב מצומצם כברירת מחדל; מצב מלא מציג סמנים לבלוק הנוכחי ולכל המכלים שלו",
- "blockGutterCompact": "מצומצם",
- "blockGutterFull": "מלא",
+ "blockGutterMode": "הצגת כל סמני הבלוקים",
+ "blockGutterModeTip": "כאשר האפשרות מופעלת, מוצגים כל הסמנים של הבלוק הנוכחי והמכלים שלו; כאשר היא מושבתת, נעשה שימוש בתצוגה מצומצמת",
"automationCollectionTarget": "יעד האיסוף",
"automationCollectionTargetBlock": "בלוק המכיל את התגית",
"automationCollectionTargetContainer": "בלוק מכל",
diff --git a/app/appearance/langs/hi.json b/app/appearance/langs/hi.json
index ba99843ea4..d030f5ce47 100644
--- a/app/appearance/langs/hi.json
+++ b/app/appearance/langs/hi.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "मेल खाता है",
"automationCollectionUnmatched": "मेल नहीं खाता",
"automationCollectionUnknown": "निर्धारित नहीं किया जा सकता",
- "blockGutterMode": "ब्लॉक संकेतक मोड",
- "blockGutterModeTip": "डिफ़ॉल्ट रूप से संक्षिप्त; पूर्ण मोड में वर्तमान ब्लॉक और उसके सभी कंटेनर के संकेतक दिखते हैं",
- "blockGutterCompact": "संक्षिप्त",
- "blockGutterFull": "पूर्ण",
+ "blockGutterMode": "सभी ब्लॉक संकेतक दिखाएँ",
+ "blockGutterModeTip": "सक्षम होने पर वर्तमान ब्लॉक और उसके सभी कंटेनर के संकेतक दिखते हैं; अक्षम होने पर संक्षिप्त रूप में दिखते हैं",
"automationCollectionTarget": "संग्रह लक्ष्य",
"automationCollectionTargetBlock": "टैग वाला ब्लॉक",
"automationCollectionTargetContainer": "कंटेनर ब्लॉक",
diff --git a/app/appearance/langs/id.json b/app/appearance/langs/id.json
index 93e2e7598d..5b4e055867 100644
--- a/app/appearance/langs/id.json
+++ b/app/appearance/langs/id.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "Cocok",
"automationCollectionUnmatched": "Tidak cocok",
"automationCollectionUnknown": "Tidak dapat ditentukan",
- "blockGutterMode": "Mode indikator blok",
- "blockGutterModeTip": "Ringkas secara bawaan; mode lengkap menampilkan indikator blok saat ini dan semua wadahnya",
- "blockGutterCompact": "Ringkas",
- "blockGutterFull": "Lengkap",
+ "blockGutterMode": "Tampilkan indikator blok lengkap",
+ "blockGutterModeTip": "Saat diaktifkan, menampilkan semua indikator blok saat ini dan wadahnya; saat dinonaktifkan, menggunakan tampilan ringkas",
"automationCollectionTarget": "Objek pengumpulan",
"automationCollectionTargetBlock": "Blok yang berisi tag",
"automationCollectionTargetContainer": "Blok wadah",
diff --git a/app/appearance/langs/it.json b/app/appearance/langs/it.json
index 9d7c13df49..0bc0e02ab1 100644
--- a/app/appearance/langs/it.json
+++ b/app/appearance/langs/it.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "Corrisponde",
"automationCollectionUnmatched": "Non corrisponde",
"automationCollectionUnknown": "Non determinabile",
- "blockGutterMode": "Modalità degli indicatori di blocco",
- "blockGutterModeTip": "Compatta per impostazione predefinita; la modalità completa mostra gli indicatori del blocco corrente e di tutti i suoi contenitori",
- "blockGutterCompact": "Compatta",
- "blockGutterFull": "Completa",
+ "blockGutterMode": "Mostra tutti gli indicatori di blocco",
+ "blockGutterModeTip": "Se attivato, mostra tutti gli indicatori del blocco corrente e dei suoi contenitori; se disattivato, usa una visualizzazione semplificata",
"automationCollectionTarget": "Oggetto da raccogliere",
"automationCollectionTargetBlock": "Blocco contenente il tag",
"automationCollectionTargetContainer": "Blocco contenitore",
diff --git a/app/appearance/langs/ja.json b/app/appearance/langs/ja.json
index 1a36ae6cf4..b47db5d2c4 100644
--- a/app/appearance/langs/ja.json
+++ b/app/appearance/langs/ja.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "一致",
"automationCollectionUnmatched": "不一致",
"automationCollectionUnknown": "判定不能",
- "blockGutterMode": "ブロックアイコンの表示モード",
- "blockGutterModeTip": "既定は簡略表示です。完全表示では、現在のブロックと、それを含むすべてのコンテナのアイコンを表示します",
- "blockGutterCompact": "簡略",
- "blockGutterFull": "完全",
+ "blockGutterMode": "ブロックアイコンをすべて表示",
+ "blockGutterModeTip": "有効にすると現在のブロックと、それを含むコンテナのすべてのブロックアイコンを表示し、無効にすると簡略表示します",
"automationCollectionTarget": "収集対象",
"automationCollectionTargetBlock": "タグを含むブロック",
"automationCollectionTargetContainer": "コンテナブロック",
diff --git a/app/appearance/langs/ko.json b/app/appearance/langs/ko.json
index f46b728a8f..401bf53507 100644
--- a/app/appearance/langs/ko.json
+++ b/app/appearance/langs/ko.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "일치",
"automationCollectionUnmatched": "불일치",
"automationCollectionUnknown": "판단할 수 없음",
- "blockGutterMode": "블록 표시 모드",
- "blockGutterModeTip": "기본값은 간소화이며, 전체 모드는 현재 블록과 이를 포함하는 모든 컨테이너의 표시를 보여줍니다",
- "blockGutterCompact": "간소화",
- "blockGutterFull": "전체",
+ "blockGutterMode": "블록 아이콘 모두 표시",
+ "blockGutterModeTip": "활성화하면 현재 블록과 이를 포함하는 컨테이너의 모든 블록 아이콘을 표시하고, 비활성화하면 간소화하여 표시합니다",
"automationCollectionTarget": "수집 대상",
"automationCollectionTargetBlock": "태그가 있는 블록",
"automationCollectionTargetContainer": "컨테이너 블록",
diff --git a/app/appearance/langs/nl.json b/app/appearance/langs/nl.json
index 8652cf75b5..f62f13b019 100644
--- a/app/appearance/langs/nl.json
+++ b/app/appearance/langs/nl.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "Komt overeen",
"automationCollectionUnmatched": "Komt niet overeen",
"automationCollectionUnknown": "Niet te bepalen",
- "blockGutterMode": "Modus voor blokindicatoren",
- "blockGutterModeTip": "Standaard compact; de volledige modus toont indicatoren voor het huidige blok en alle bijbehorende containers",
- "blockGutterCompact": "Compact",
- "blockGutterFull": "Volledig",
+ "blockGutterMode": "Alle blokindicatoren tonen",
+ "blockGutterModeTip": "Toont bij inschakeling alle indicatoren van het huidige blok en de bijbehorende containers; gebruikt bij uitschakeling een vereenvoudigde weergave",
"automationCollectionTarget": "Verzameldoel",
"automationCollectionTargetBlock": "Blok met de tag",
"automationCollectionTargetContainer": "Containerblok",
diff --git a/app/appearance/langs/pl.json b/app/appearance/langs/pl.json
index 5fb624aca2..081f65f554 100644
--- a/app/appearance/langs/pl.json
+++ b/app/appearance/langs/pl.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "Pasuje",
"automationCollectionUnmatched": "Nie pasuje",
"automationCollectionUnknown": "Nie można ustalić",
- "blockGutterMode": "Tryb wskaźników bloków",
- "blockGutterModeTip": "Domyślnie kompaktowy; tryb pełny pokazuje wskaźniki bieżącego bloku i wszystkich jego kontenerów",
- "blockGutterCompact": "Kompaktowy",
- "blockGutterFull": "Pełny",
+ "blockGutterMode": "Pokaż wszystkie wskaźniki bloków",
+ "blockGutterModeTip": "Po włączeniu pokazuje wszystkie wskaźniki bieżącego bloku i jego kontenerów; po wyłączeniu używa uproszczonego widoku",
"automationCollectionTarget": "Obiekt zbierania",
"automationCollectionTargetBlock": "Blok zawierający tag",
"automationCollectionTargetContainer": "Blok kontenera",
diff --git a/app/appearance/langs/pt-BR.json b/app/appearance/langs/pt-BR.json
index 323ddbdf9c..8bfe4e55fa 100644
--- a/app/appearance/langs/pt-BR.json
+++ b/app/appearance/langs/pt-BR.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "Corresponde",
"automationCollectionUnmatched": "Não corresponde",
"automationCollectionUnknown": "Não foi possível determinar",
- "blockGutterMode": "Modo dos indicadores de bloco",
- "blockGutterModeTip": "Compacto por padrão; o modo completo mostra os indicadores do bloco atual e de todos os seus contêineres",
- "blockGutterCompact": "Compacto",
- "blockGutterFull": "Completo",
+ "blockGutterMode": "Mostrar todos os indicadores de bloco",
+ "blockGutterModeTip": "Quando ativado, mostra todos os indicadores do bloco atual e de seus contêineres; quando desativado, usa uma exibição simplificada",
"automationCollectionTarget": "Objeto da coleta",
"automationCollectionTargetBlock": "Bloco que contém a etiqueta",
"automationCollectionTargetContainer": "Bloco contêiner",
diff --git a/app/appearance/langs/ru.json b/app/appearance/langs/ru.json
index b448b09455..8059e1af23 100644
--- a/app/appearance/langs/ru.json
+++ b/app/appearance/langs/ru.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "Соответствует",
"automationCollectionUnmatched": "Не соответствует",
"automationCollectionUnknown": "Невозможно определить",
- "blockGutterMode": "Режим значков блоков",
- "blockGutterModeTip": "По умолчанию компактный; полный режим показывает значки текущего блока и всех его контейнеров",
- "blockGutterCompact": "Компактный",
- "blockGutterFull": "Полный",
+ "blockGutterMode": "Показывать все значки блоков",
+ "blockGutterModeTip": "При включении показывает все значки текущего блока и его контейнеров; при отключении используется упрощённое отображение",
"automationCollectionTarget": "Объект сбора",
"automationCollectionTargetBlock": "Блок с тегом",
"automationCollectionTargetContainer": "Блок-контейнер",
diff --git a/app/appearance/langs/sk.json b/app/appearance/langs/sk.json
index 2e7385efe5..1acd1d639e 100644
--- a/app/appearance/langs/sk.json
+++ b/app/appearance/langs/sk.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "Vyhovuje",
"automationCollectionUnmatched": "Nevyhovuje",
"automationCollectionUnknown": "Nedá sa určiť",
- "blockGutterMode": "Režim indikátorov blokov",
- "blockGutterModeTip": "Predvolene kompaktný; úplný režim zobrazuje indikátory aktuálneho bloku a všetkých jeho kontajnerov",
- "blockGutterCompact": "Kompaktný",
- "blockGutterFull": "Úplný",
+ "blockGutterMode": "Zobraziť všetky indikátory blokov",
+ "blockGutterModeTip": "Po zapnutí zobrazuje všetky indikátory aktuálneho bloku a jeho kontajnerov; po vypnutí používa zjednodušené zobrazenie",
"automationCollectionTarget": "Objekt zbierania",
"automationCollectionTargetBlock": "Blok obsahujúci značku",
"automationCollectionTargetContainer": "Kontajnerový blok",
diff --git a/app/appearance/langs/sr.json b/app/appearance/langs/sr.json
index 5ab10c266f..87432ce502 100644
--- a/app/appearance/langs/sr.json
+++ b/app/appearance/langs/sr.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "Подудара се",
"automationCollectionUnmatched": "Не подудара се",
"automationCollectionUnknown": "Није могуће одредити",
- "blockGutterMode": "Режим ознака блокова",
- "blockGutterModeTip": "Подразумевано сажет; потпуни режим приказује ознаке тренутног блока и свих његових контејнера",
- "blockGutterCompact": "Сажет",
- "blockGutterFull": "Потпун",
+ "blockGutterMode": "Прикажи све ознаке блокова",
+ "blockGutterModeTip": "Када је омогућено, приказује све ознаке тренутног блока и његових контејнера; када је онемогућено, користи сажети приказ",
"automationCollectionTarget": "Објекат прикупљања",
"automationCollectionTargetBlock": "Блок који садржи ознаку",
"automationCollectionTargetContainer": "Контејнерски блок",
diff --git a/app/appearance/langs/th.json b/app/appearance/langs/th.json
index 36748cae97..36f84f1bdc 100644
--- a/app/appearance/langs/th.json
+++ b/app/appearance/langs/th.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "ตรงเงื่อนไข",
"automationCollectionUnmatched": "ไม่ตรงเงื่อนไข",
"automationCollectionUnknown": "ไม่สามารถระบุได้",
- "blockGutterMode": "โหมดตัวบ่งชี้บล็อก",
- "blockGutterModeTip": "ค่าเริ่มต้นเป็นแบบย่อ โดยโหมดเต็มจะแสดงตัวบ่งชี้ของบล็อกปัจจุบันและคอนเทนเนอร์ทั้งหมดที่ครอบบล็อกนั้น",
- "blockGutterCompact": "ย่อ",
- "blockGutterFull": "เต็ม",
+ "blockGutterMode": "แสดงตัวบ่งชี้บล็อกทั้งหมด",
+ "blockGutterModeTip": "เมื่อเปิดใช้งานจะแสดงตัวบ่งชี้ทั้งหมดของบล็อกปัจจุบันและคอนเทนเนอร์ที่ครอบบล็อกนั้น เมื่อปิดใช้งานจะแสดงแบบย่อ",
"automationCollectionTarget": "เป้าหมายการรวบรวม",
"automationCollectionTargetBlock": "บล็อกที่มีแท็ก",
"automationCollectionTargetContainer": "บล็อกคอนเทนเนอร์",
diff --git a/app/appearance/langs/tr.json b/app/appearance/langs/tr.json
index 8add2fc8b7..9db0be66c8 100644
--- a/app/appearance/langs/tr.json
+++ b/app/appearance/langs/tr.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "Eşleşiyor",
"automationCollectionUnmatched": "Eşleşmiyor",
"automationCollectionUnknown": "Belirlenemiyor",
- "blockGutterMode": "Blok göstergesi modu",
- "blockGutterModeTip": "Varsayılan olarak sade; tam mod, geçerli bloğun ve onu içeren tüm kapsayıcıların göstergelerini gösterir",
- "blockGutterCompact": "Sade",
- "blockGutterFull": "Tam",
+ "blockGutterMode": "Tüm blok göstergelerini göster",
+ "blockGutterModeTip": "Etkinleştirildiğinde geçerli bloğun ve kapsayıcılarının tüm göstergelerini gösterir; devre dışı bırakıldığında sade bir görünüm kullanır",
"automationCollectionTarget": "Toplanacak nesne",
"automationCollectionTargetBlock": "Etiketi içeren blok",
"automationCollectionTargetContainer": "Kapsayıcı blok",
diff --git a/app/appearance/langs/uk.json b/app/appearance/langs/uk.json
index 1fa8666596..75f8a673d4 100644
--- a/app/appearance/langs/uk.json
+++ b/app/appearance/langs/uk.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "Відповідає",
"automationCollectionUnmatched": "Не відповідає",
"automationCollectionUnknown": "Неможливо визначити",
- "blockGutterMode": "Режим значків блоків",
- "blockGutterModeTip": "Типово компактний; повний режим показує значки поточного блоку та всіх його контейнерів",
- "blockGutterCompact": "Компактний",
- "blockGutterFull": "Повний",
+ "blockGutterMode": "Показувати всі значки блоків",
+ "blockGutterModeTip": "Коли ввімкнено, показує всі значки поточного блоку та його контейнерів; коли вимкнено, використовує спрощене відображення",
"automationCollectionTarget": "Об’єкт збирання",
"automationCollectionTargetBlock": "Блок із тегом",
"automationCollectionTargetContainer": "Блок-контейнер",
diff --git a/app/appearance/langs/zh-CN.json b/app/appearance/langs/zh-CN.json
index 98a8a9ef12..47ce378b1d 100644
--- a/app/appearance/langs/zh-CN.json
+++ b/app/appearance/langs/zh-CN.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "仍然匹配",
"automationCollectionUnmatched": "不再匹配",
"automationCollectionUnknown": "无法判断",
- "blockGutterMode": "块标显示模式",
- "blockGutterModeTip": "默认精简显示,完整模式显示当前块及其所属容器的全部块标",
- "blockGutterCompact": "精简",
- "blockGutterFull": "完整",
+ "blockGutterMode": "显示完整块标",
+ "blockGutterModeTip": "启用后显示当前块及其所属容器的全部块标,关闭时精简显示",
"automationCollectionTarget": "收集对象",
"automationCollectionTargetBlock": "标签所在块",
"automationCollectionTargetContainer": "容器块",
diff --git a/app/appearance/langs/zh-TW.json b/app/appearance/langs/zh-TW.json
index 0e0b389ae8..60ae3c780d 100644
--- a/app/appearance/langs/zh-TW.json
+++ b/app/appearance/langs/zh-TW.json
@@ -6,10 +6,8 @@
"automationCollectionMatched": "仍然相符",
"automationCollectionUnmatched": "不再相符",
"automationCollectionUnknown": "無法判斷",
- "blockGutterMode": "區塊標顯示模式",
- "blockGutterModeTip": "預設精簡顯示,完整模式顯示目前區塊及其所屬容器的所有區塊標",
- "blockGutterCompact": "精簡",
- "blockGutterFull": "完整",
+ "blockGutterMode": "顯示完整區塊標",
+ "blockGutterModeTip": "啟用後顯示目前區塊及其所屬容器的所有區塊標,關閉時精簡顯示",
"automationCollectionTarget": "收集對象",
"automationCollectionTargetBlock": "標籤所在區塊",
"automationCollectionTargetContainer": "容器區塊",
diff --git a/app/guide/20210808180117-6v0mkxr/20200923234731-h3zkwm2.sy b/app/guide/20210808180117-6v0mkxr/20200923234731-h3zkwm2.sy
index 6686f3e665..fabd6bc0c1 100644
--- a/app/guide/20210808180117-6v0mkxr/20200923234731-h3zkwm2.sy
+++ b/app/guide/20210808180117-6v0mkxr/20200923234731-h3zkwm2.sy
@@ -7,7 +7,7 @@
"id": "20200923234731-h3zkwm2",
"title": "FAQ",
"type": "doc",
- "updated": "20261017234852"
+ "updated": "20261018005815"
},
"Children": [
{
@@ -1068,7 +1068,7 @@
"HeadingLevel": 2,
"Properties": {
"id": "20220501231348-sx3l5qp",
- "updated": "20261017234852"
+ "updated": "20261018005815"
},
"Children": [
{
@@ -1082,12 +1082,12 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20261017212429-ykfqzzo",
- "updated": "20261017234852"
+ "updated": "20261018005815"
},
"Children": [
{
"Type": "NodeText",
- "Data": "Compact indicators are used by default. Lists with only one item retain both the list and list item indicators. To show indicators for the current block and all its containers, open "
+ "Data": "By default, block indicators are simplified. Lists with only one item retain both the list and list item indicators. To show indicators for the current block and all its containers, turn on "
},
{
"Type": "NodeTextMark",
@@ -1119,11 +1119,11 @@
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
- "TextMarkTextContent": "Block indicator mode"
+ "TextMarkTextContent": "Show full block indicators"
},
{
"Type": "NodeText",
- "Data": " and select Full. Each indicator opens the corresponding block menu and provides a drag handle."
+ "Data": ". Each indicator opens the corresponding block menu and provides a drag handle."
}
]
},
diff --git a/app/guide/20210808180117-czj9bvb/20200813093015-u6bopdt.sy b/app/guide/20210808180117-czj9bvb/20200813093015-u6bopdt.sy
index d737e3e0c7..c9719262b7 100644
--- a/app/guide/20210808180117-czj9bvb/20200813093015-u6bopdt.sy
+++ b/app/guide/20210808180117-czj9bvb/20200813093015-u6bopdt.sy
@@ -7,7 +7,7 @@
"id": "20200813093015-u6bopdt",
"title": "常见问题",
"type": "doc",
- "updated": "20261017234852"
+ "updated": "20261018005815"
},
"Children": [
{
@@ -1060,7 +1060,7 @@
"HeadingLevel": 2,
"Properties": {
"id": "20220501230739-whydmx1",
- "updated": "20261017234852"
+ "updated": "20261018005815"
},
"Children": [
{
@@ -1074,12 +1074,12 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20261017212429-ssbwd82",
- "updated": "20261017234852"
+ "updated": "20261018005815"
},
"Children": [
{
"Type": "NodeText",
- "Data": "默认使用精简块标。只有一个列表项时,也会保留列表块和列表项块标。若要显示当前块及其所属容器的全部块标,可在 "
+ "Data": "默认使用精简块标。只有一个列表项时,也会保留列表块和列表项块标。若要显示当前块及其所属容器的全部块标,可启用 "
},
{
"Type": "NodeTextMark",
@@ -1111,11 +1111,11 @@
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
- "TextMarkTextContent": "块标显示模式"
+ "TextMarkTextContent": "显示完整块标"
},
{
"Type": "NodeText",
- "Data": " 中选择「完整」,通过各层块标直接打开对应块的菜单或拖拽该块。"
+ "Data": ",通过各层块标直接打开对应块的菜单或拖拽该块。"
}
]
},
diff --git a/app/guide/20211226090932-5lcq56f/20211226115227-r1rty9v.sy b/app/guide/20211226090932-5lcq56f/20211226115227-r1rty9v.sy
index c8a243d0c3..2448773107 100644
--- a/app/guide/20211226090932-5lcq56f/20211226115227-r1rty9v.sy
+++ b/app/guide/20211226090932-5lcq56f/20211226115227-r1rty9v.sy
@@ -7,7 +7,7 @@
"id": "20211226115227-r1rty9v",
"title": "常見問題",
"type": "doc",
- "updated": "20261017234852"
+ "updated": "20261018005815"
},
"Children": [
{
@@ -1064,7 +1064,7 @@
"HeadingLevel": 2,
"Properties": {
"id": "20220501231338-vlg2lgm",
- "updated": "20261017234852"
+ "updated": "20261018005815"
},
"Children": [
{
@@ -1078,12 +1078,12 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20261017212429-ke3nbw0",
- "updated": "20261017234852"
+ "updated": "20261018005815"
},
"Children": [
{
"Type": "NodeText",
- "Data": "預設使用精簡區塊標。只有一個列表項時,也會保留列表區塊和列表項區塊標。若要顯示目前區塊及其所屬容器的所有區塊標,可在 "
+ "Data": "預設使用精簡區塊標。只有一個列表項時,也會保留列表區塊和列表項區塊標。若要顯示目前區塊及其所屬容器的所有區塊標,可啟用 "
},
{
"Type": "NodeTextMark",
@@ -1115,11 +1115,11 @@
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
- "TextMarkTextContent": "區塊標顯示模式"
+ "TextMarkTextContent": "顯示完整區塊標"
},
{
"Type": "NodeText",
- "Data": " 中選擇「完整」,透過各層區塊標直接開啟對應區塊的選單或拖曳該區塊。"
+ "Data": ",透過各層區塊標直接開啟對應區塊的選單或拖曳該區塊。"
}
]
},
diff --git a/app/guide/20240530133126-axarxgx/20240530101000-jp793ic.sy b/app/guide/20240530133126-axarxgx/20240530101000-jp793ic.sy
index 1431277bf6..82313c2834 100644
--- a/app/guide/20240530133126-axarxgx/20240530101000-jp793ic.sy
+++ b/app/guide/20240530133126-axarxgx/20240530101000-jp793ic.sy
@@ -8,7 +8,7 @@
"id": "20240530101000-jp793ic",
"title": "よくある質問",
"type": "doc",
- "updated": "20261017234852"
+ "updated": "20261018005815"
},
"Children": [
{
@@ -1110,7 +1110,7 @@
"Properties": {
"ID": "20240530101000-owjuw7q",
"id": "20240530101000-1u51q5t",
- "updated": "20261017234852"
+ "updated": "20261018005815"
},
"Children": [
{
@@ -1134,7 +1134,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20261017212429-yem61n3",
- "updated": "20261017234852"
+ "updated": "20261018005815"
},
"Children": [
{
@@ -1171,11 +1171,11 @@
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
- "TextMarkTextContent": "ブロックアイコンの表示モード"
+ "TextMarkTextContent": "ブロックアイコンをすべて表示"
},
{
"Type": "NodeText",
- "Data": " で「完全」を選択します。各アイコンから対応するブロックのメニューを開いたり、そのブロックをドラッグしたりできます。"
+ "Data": " を有効にします。各アイコンから対応するブロックのメニューを開いたり、そのブロックをドラッグしたりできます。"
}
]
},
diff --git a/app/src/config/tabs/editorGutterMode.test.ts b/app/src/config/tabs/editorGutterMode.test.ts
index 19de9d4564..76ce0159e9 100644
--- a/app/src/config/tabs/editorGutterMode.test.ts
+++ b/app/src/config/tabs/editorGutterMode.test.ts
@@ -7,19 +7,29 @@ import {createSourceFile, ScriptTarget, transpileModule} from "typescript";
const {parse} = require("ifdef-loader/preprocessor");
for (const mobile of [false, true]) {
- test(`block indicator mode follows badges in editor behavior settings (mobile=${mobile})`, () => {
+ test(`full block indicator switch preserves numeric settings (mobile=${mobile})`, () => {
const source = createSourceFile("editorTab.ts", parse(readFileSync("src/config/tabs/editorTab.ts", "utf8"),
{BROWSER: true, MOBILE: mobile}, false, true), ScriptTarget.ES2021, true);
const registration = source.statements.find(node => node.getText(source).startsWith("const registerEditorBehaviorGroup ="));
assert.ok(registration);
- const rows: Array<{kind: string; id: string; spec: {title: string; options?: Array<{value: number; label: string}>}}> = [];
+ const rows: Array<{kind: string; id: string; spec: {
+ title: string; desc: string; readConfig?: () => boolean; save?: (value: boolean) => Promise<void>;
+ }}> = [];
+ const editor = {blockGutterMode: undefined as number | undefined};
+ const patches: Array<{key: string; value: number}> = [];
+ const saved = Promise.resolve();
const exports: {register?: (tab: unknown) => void} = {};
runInNewContext(transpileModule(registration.getText(source), {
compilerOptions: {target: ScriptTarget.ES2021},
}).outputText + "\nexports.register = registerEditorBehaviorGroup;", {
exports,
window: {siyuan: {languages: new Proxy({}, {get: (_, key) => String(key)}),
- config: {keymap: {general: {editReadonly: {custom: ""}}}}}},
+ config: {editor, keymap: {general: {editReadonly: {custom: ""}}}}}},
+ editorConfigApi: {patch: (key: string, value: number) => {
+ patches.push({key, value});
+ editor.blockGutterMode = value;
+ return saved;
+ }},
isMobile: () => mobile, isBrowser: () => true,
updateHotkeyTip: String,
CODE_TAB_SPACE_VALUES: [0, 2, 4, 6, 8], getCodeTabSpacesLabel: String,
@@ -33,10 +43,21 @@ for (const mobile of [false, true]) {
const index = rows.findIndex(row => row.id === "editor.blockGutterMode");
assert.ok(index > 0);
assert.equal(rows[index - 1].id, "editor.displayBookmarkIcon");
- assert.equal(rows[index].kind, "select");
- assert.equal(rows[index].spec.title, "blockGutterMode");
- assert.deepEqual(JSON.parse(JSON.stringify(rows[index].spec.options)), [
- {value: 0, label: "blockGutterCompact"}, {value: 1, label: "blockGutterFull"},
- ]);
+ assert.equal(rows[index].kind, "switch");
+ const spec = rows[index].spec;
+ assert.equal(spec.title, "blockGutterMode");
+ assert.equal(spec.desc, "blockGutterModeTip");
+ assert.equal(spec.readConfig(), false, "missing legacy settings leave the switch off");
+ editor.blockGutterMode = 0;
+ assert.equal(spec.readConfig(), false);
+ editor.blockGutterMode = 1;
+ assert.equal(spec.readConfig(), true, "an existing full setting remains enabled");
+ assert.equal(spec.save(false), saved, "settings wait for the numeric configuration save to finish");
+ assert.equal(spec.readConfig(), false);
+ assert.equal(spec.save(true), saved);
+ assert.equal(spec.readConfig(), true);
+ assert.deepEqual(patches, [
+ {key: "blockGutterMode", value: 0}, {key: "blockGutterMode", value: 1},
+ ], "the switch submits numeric values accepted by the existing API");
});
}
diff --git a/app/src/config/tabs/editorTab.ts b/app/src/config/tabs/editorTab.ts
index 0adc3257ad..287d7e639a 100644
--- a/app/src/config/tabs/editorTab.ts
+++ b/app/src/config/tabs/editorTab.ts
@@ -50,13 +50,11 @@ const registerEditorBehaviorGroup = (tab: SettingTabBuilder) => {
title: window.siyuan.languages.md12,
desc: window.siyuan.languages.md16,
});
- group.select("editor.blockGutterMode", {
+ group.switch("editor.blockGutterMode", {
title: window.siyuan.languages.blockGutterMode,
desc: window.siyuan.languages.blockGutterModeTip,
- options: [
- {value: 0, label: window.siyuan.languages.blockGutterCompact},
- {value: 1, label: window.siyuan.languages.blockGutterFull},
- ],
+ readConfig: () => window.siyuan.config.editor.blockGutterMode === 1,
+ save: (value) => editorConfigApi.patch("blockGutterMode", value ? 1 : 0),
});
group.select("editor.codeTabSpaces", {
title: window.siyuan.languages.md29,