The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.
Rust ffmpegfree-video-editormodel-context-protocolnon-linear-editoroffline-firstopen-source-video-editorself-hostedvideo-editingvideo-editing-automationvideo-editing-softwarevideo-editing-toolsvideo-editorvoice-cloningyoutube-automationyoutube-shorts
feat(settings): a Shortcuts tab that lists every keybind and lets you set one (#400)
minecart551-progb12e5279bca8
diff --git a/src/crates/concat/locales/ar.json b/src/crates/concat/locales/ar.jsonindex 57ca1089..bc9d3c69 100644--- a/src/crates/concat/locales/ar.json+++ b/src/crates/concat/locales/ar.json@@ -676,18 +676,18 @@"tray.generateCaptions": "إنشاء تسميات توضيحية","tray.hideMeters": "إخفاء مقاييس المستوى","tray.magneticTimelineDeletingTrimming": "المخطط الزمني المغناطيسي: الحذف والقصّ يُغلقان الفجوة",- "tray.panTool": "أداة التحريك (H)",+ "tray.panTool": "أداة التحريك ({0})","tray.playerFollowsResizePlayhead": "المشغّل يتبع تغيير الحجم: يسير مؤشر التشغيل مع الحافة التي تقصّها","tray.previewAxisOptions": "خيارات محور المعاينة","tray.recordVoiceover": "تسجيل تعليق صوتي","tray.redo": "إعادة ({0})","tray.showMeters": "إظهار مقاييس المستوى: مدى ارتفاع صوت المخطط الزمني","tray.splitAtPlayhead": "تقسيم عند مؤشر التشغيل ({0})",- "tray.splitTool": "أداة التقسيم (B): انقر على مقطع لقصّه هناك",+ "tray.splitTool": "أداة التقسيم ({0}): انقر على مقطع لقصّه هناك","tray.stopRecording": "إيقاف التسجيل","tray.textToSpeech": "تحويل النص إلى كلام",- "tray.turnOffPreviewAxis": "إيقاف محور المعاينة (S)",- "tray.turnOnPreviewAxis": "تشغيل محور المعاينة (S)",+ "tray.turnOffPreviewAxis": "إيقاف محور المعاينة ({0})",+ "tray.turnOnPreviewAxis": "تشغيل محور المعاينة ({0})","tray.undo": "تراجع ({0})","tray.zoomToFit": "تكبير للملاءمة","voiceover.added": "تمت إضافة التعليق الصوتي إلى المخطط الزمني",diff --git a/src/crates/concat/locales/bn.json b/src/crates/concat/locales/bn.jsonindex 041b2be2..6dc45281 100644--- a/src/crates/concat/locales/bn.json+++ b/src/crates/concat/locales/bn.json@@ -676,18 +676,18 @@"tray.generateCaptions": "ক্যাপশন তৈরি করুন","tray.hideMeters": "লেভেল মিটার লুকান","tray.magneticTimelineDeletingTrimming": "ম্যাগনেটিক টাইমলাইন: মোছা ও ছাঁটায় ফাঁক বন্ধ হয়",- "tray.panTool": "প্যান টুল (H)",+ "tray.panTool": "প্যান টুল ({0})","tray.playerFollowsResizePlayhead": "প্লেয়ার রি-সাইজ অনুসরণ করে: প্লেহেড আপনি যে কিনারা ছাঁটেন তাতে চড়ে","tray.previewAxisOptions": "প্রিভিউ অক্ষের বিকল্প","tray.recordVoiceover": "ভয়েসওভার রেকর্ড করুন","tray.redo": "রিডু ({0})","tray.showMeters": "লেভেল মিটার দেখান: টাইমলাইন কত জোরে বাজছে","tray.splitAtPlayhead": "প্লেহেডে বিভক্ত করুন ({0})",- "tray.splitTool": "বিভক্তকরণ টুল (B): সেখানে কাটতে একটি ক্লিপে ক্লিক করুন",+ "tray.splitTool": "বিভক্তকরণ টুল ({0}): সেখানে কাটতে একটি ক্লিপে ক্লিক করুন","tray.stopRecording": "রেকর্ডিং বন্ধ করুন","tray.textToSpeech": "টেক্সট টু স্পিচ",- "tray.turnOffPreviewAxis": "প্রিভিউ অক্ষ বন্ধ করুন (S)",- "tray.turnOnPreviewAxis": "প্রিভিউ অক্ষ চালু করুন (S)",+ "tray.turnOffPreviewAxis": "প্রিভিউ অক্ষ বন্ধ করুন ({0})",+ "tray.turnOnPreviewAxis": "প্রিভিউ অক্ষ চালু করুন ({0})","tray.undo": "আনডু ({0})","tray.zoomToFit": "ফিট করতে জুম করুন","voiceover.added": "টাইমলাইনে ভয়েসওভার যোগ করা হয়েছে",diff --git a/src/crates/concat/locales/de.json b/src/crates/concat/locales/de.jsonindex cede6792..62cfa330 100644--- a/src/crates/concat/locales/de.json+++ b/src/crates/concat/locales/de.json@@ -424,6 +424,7 @@"settings.scaleSystem": "System","settings.scriptsAndApps": "Skripte und Apps","settings.servesConcatApiWhile": "Stellt die Concat-API bereit, solange das Fenster offen ist, damit ein Skript oder ein anderes Programm eigene Projekte anlegen, bearbeiten und exportieren kann. Was sich verbindet, kann Dateien lesen und schreiben wie du.",+ "settings.shortcuts": "Tastenkürzel","settings.showTheLog": "Protokoll anzeigen","settings.showTheToken": "Token anzeigen","settings.sky": "Sky",@@ -442,6 +443,19 @@"settings.voices": "Stimmen","settings.whatConnectionMustPresent": "Was eine Verbindung vor ihrem ersten Aufruf vorzeigen muss. Bleibt es leer, denkt sich der Server bei jedem Start eines aus und zeigt es hier.","settings.whereEachModelCame": "Wo jedes Modell herkommt",+ "shortcuts.cutLeft": "Links vom Abspielkopf schneiden",+ "shortcuts.cutRight": "Rechts vom Abspielkopf schneiden",+ "shortcuts.hint": "Klicke eine Zeile an und drücke dann die Tasten, auf die sie reagieren soll. Escape bricht ab, und eine Tastenkombination, die eine andere Aktion hält, wird übernommen - diese Aktion bleibt ohne Taste, bis ihr eigenes Zurücksetzen wieder eine gibt. Einige Kombinationen gehören dem Fenster und können nicht belegt werden.",+ "shortcuts.press": "Taste drücken…",+ "shortcuts.previewAxis": "Vorschauachse",+ "shortcuts.reserved": "Diese Tastenkombination gehört dem Fenster",+ "shortcuts.resetAll": "Alle zurücksetzen",+ "shortcuts.rippleDelete": "Löschen und Lücke schließen",+ "shortcuts.selectAll": "Alles auswählen",+ "shortcuts.splitTool": "Schneidewerkzeug",+ "shortcuts.stepBack": "Ein Bild zurück",+ "shortcuts.stepForward": "Ein Bild vor",+ "shortcuts.unboundNow": "{0} ist jetzt nicht belegt","speech.aboutInCharacters": "Etwa {0}:{1} in {2} · {3} Zeichen","speech.american": "Amerikanisch","speech.anyVoiceRecording": "Jede Stimme, aus einer Aufnahme",@@ -676,18 +690,17 @@"tray.generateCaptions": "Untertitel erzeugen","tray.hideMeters": "Pegelanzeige ausblenden","tray.magneticTimelineDeletingTrimming": "Magnetische Zeitleiste: Löschen und Kürzen schließen die Lücke",- "tray.panTool": "Pan tool (H)","tray.playerFollowsResizePlayhead": "Wiedergabe folgt dem Kürzen: Der Abspielkopf wandert mit der Kante, die du kürzt","tray.previewAxisOptions": "Optionen der Vorschauachse","tray.recordVoiceover": "Voiceover aufnehmen","tray.redo": "Wiederholen ({0})","tray.showMeters": "Pegelanzeige einblenden: wie laut die Timeline spielt","tray.splitAtPlayhead": "Am Abspielkopf teilen ({0})",- "tray.splitTool": "Schneidewerkzeug (B): Klick auf einen Clip schneidet ihn dort",+ "tray.splitTool": "Schneidewerkzeug ({0}): Klick auf einen Clip schneidet ihn dort","tray.stopRecording": "Aufnahme beenden","tray.textToSpeech": "Text zu Sprache",- "tray.turnOffPreviewAxis": "Vorschauachse ausschalten (S)",- "tray.turnOnPreviewAxis": "Vorschauachse einschalten (S)",+ "tray.turnOffPreviewAxis": "Vorschauachse ausschalten ({0})",+ "tray.turnOnPreviewAxis": "Vorschauachse einschalten ({0})","tray.undo": "Rückgängig ({0})","tray.zoomToFit": "Einpassen","voiceover.added": "Voiceover zur Zeitleiste hinzugefügt",diff --git a/src/crates/concat/locales/en.json b/src/crates/concat/locales/en.jsonindex eed1c7d2..04efde13 100644--- a/src/crates/concat/locales/en.json+++ b/src/crates/concat/locales/en.json@@ -424,6 +424,7 @@"settings.scaleSystem": "System","settings.scriptsAndApps": "Scripts and apps","settings.servesConcatApiWhile": "Serves the Concat API while the window is open, so a script or another program can create, edit and export projects of its own. Anything that connects can read and write files as you can.",+ "settings.shortcuts": "Shortcuts","settings.showTheLog": "Show the log","settings.showTheToken": "Show the token","settings.sky": "Sky",@@ -442,6 +443,20 @@"settings.voices": "Voices","settings.whatConnectionMustPresent": "What a connection must present before its first call. Left empty, the server makes one up each time it starts and shows it here.","settings.whereEachModelCame": "Where each model came from",+ "shortcuts.cutLeft": "Cut left of playhead",+ "shortcuts.cutRight": "Cut right of playhead",+ "shortcuts.hint": "Click a row, then press the keys it should answer to. Escape cancels, and a chord another action holds moves over, leaving that action with no key until its own Reset puts one back. A few chords belong to the window and cannot be bound.",+ "shortcuts.pan": "Pan tool",+ "shortcuts.press": "Press a key…",+ "shortcuts.previewAxis": "Preview axis",+ "shortcuts.reserved": "That chord belongs to the window",+ "shortcuts.resetAll": "Reset all",+ "shortcuts.rippleDelete": "Delete and close the gap",+ "shortcuts.selectAll": "Select all",+ "shortcuts.splitTool": "Split tool",+ "shortcuts.stepBack": "Step back a frame",+ "shortcuts.stepForward": "Step forward a frame",+ "shortcuts.unboundNow": "{0} is unbound now","speech.aboutInCharacters": "About {0}:{1} in {2} · {3} characters","speech.american": "American","speech.anyVoiceRecording": "Any voice, from a recording",@@ -676,18 +691,18 @@"tray.generateCaptions": "Generate Captions","tray.hideMeters": "Hide the level meters","tray.magneticTimelineDeletingTrimming": "Magnetic timeline: deleting and trimming close the gap",- "tray.panTool": "Pan tool (H)",+ "tray.panTool": "Pan tool ({0})","tray.playerFollowsResizePlayhead": "Player follows the resize: the playhead rides the edge you trim","tray.previewAxisOptions": "Preview axis options","tray.recordVoiceover": "Record Voiceover","tray.redo": "Redo ({0})","tray.showMeters": "Show the level meters: how loud the timeline plays","tray.splitAtPlayhead": "Split at playhead ({0})",- "tray.splitTool": "Split tool (B): click a clip to cut it there",+ "tray.splitTool": "Split tool ({0}): click a clip to cut it there","tray.stopRecording": "Stop Recording","tray.textToSpeech": "Text to Speech",- "tray.turnOffPreviewAxis": "Turn off Preview Axis (S)",- "tray.turnOnPreviewAxis": "Turn on Preview Axis (S)",+ "tray.turnOffPreviewAxis": "Turn off Preview Axis ({0})",+ "tray.turnOnPreviewAxis": "Turn on Preview Axis ({0})","tray.undo": "Undo ({0})","tray.zoomToFit": "Zoom to fit","voiceover.added": "Voiceover added to the timeline",diff --git a/src/crates/concat/locales/es.json b/src/crates/concat/locales/es.jsonindex 20a10c58..2195aefa 100644--- a/src/crates/concat/locales/es.json+++ b/src/crates/concat/locales/es.json@@ -424,6 +424,7 @@"settings.scaleSystem": "System","settings.scriptsAndApps": "Scripts y apps","settings.servesConcatApiWhile": "Sirve la API de Concat mientras la ventana está abierta, para que un script u otro programa cree, edite y exporte sus propios proyectos. Todo lo que se conecte puede leer y escribir archivos igual que tú.",+ "settings.shortcuts": "Atajos","settings.showTheLog": "Mostrar el registro","settings.showTheToken": "Mostrar el token","settings.sky": "Sky",@@ -442,6 +443,19 @@"settings.voices": "Voces","settings.whatConnectionMustPresent": "Lo que una conexión debe presentar antes de su primera llamada. Si se deja vacío, el servidor inventa uno cada vez que arranca y lo muestra aquí.","settings.whereEachModelCame": "De donde salió cada modelo",+ "shortcuts.cutLeft": "Cortar a la izquierda del cabezal",+ "shortcuts.cutRight": "Cortar a la derecha del cabezal",+ "shortcuts.hint": "Haz clic en una fila y pulsa después las teclas a las que debe responder. Escape cancela, y una combinación que tiene otra acción pasa a esta, dejando a esa acción sin tecla hasta que su propio Restablecer devuelva una. Algunas combinaciones pertenecen a la ventana y no se pueden asignar.",+ "shortcuts.press": "Pulsa una tecla…",+ "shortcuts.previewAxis": "Eje de previsualización",+ "shortcuts.reserved": "Esa combinación pertenece a la ventana",+ "shortcuts.resetAll": "Restablecer todo",+ "shortcuts.rippleDelete": "Eliminar y cerrar el hueco",+ "shortcuts.selectAll": "Seleccionar todo",+ "shortcuts.splitTool": "Herramienta de corte",+ "shortcuts.stepBack": "Retroceder un fotograma",+ "shortcuts.stepForward": "Avanzar un fotograma",+ "shortcuts.unboundNow": "{0} ya no tiene tecla","speech.aboutInCharacters": "Unos {0}:{1} en {2} · {3} caracteres","speech.american": "Americano","speech.anyVoiceRecording": "Cualquier voz, a partir de una grabación",@@ -676,18 +690,17 @@"tray.generateCaptions": "Generar subtítulos","tray.hideMeters": "Ocultar los medidores de nivel","tray.magneticTimelineDeletingTrimming": "Línea de tiempo magnética: eliminar y recortar cierran el hueco",- "tray.panTool": "Pan tool (H)","tray.playerFollowsResizePlayhead": "El reproductor sigue el recorte: el cabezal de reproducción acompaña el borde que recortas","tray.previewAxisOptions": "Opciones del eje de previsualización","tray.recordVoiceover": "Grabar voz en off","tray.redo": "Rehacer ({0})","tray.showMeters": "Mostrar los medidores de nivel: a qué volumen suena la línea de tiempo","tray.splitAtPlayhead": "Dividir en el cabezal ({0})",- "tray.splitTool": "Herramienta de corte (B): clic en un clip para cortarlo ahí",+ "tray.splitTool": "Herramienta de corte ({0}): clic en un clip para cortarlo ahí","tray.stopRecording": "Detener grabación","tray.textToSpeech": "Texto a voz",- "tray.turnOffPreviewAxis": "Desactivar el eje de previsualización (S)",- "tray.turnOnPreviewAxis": "Activar el eje de previsualización (S)",+ "tray.turnOffPreviewAxis": "Desactivar el eje de previsualización ({0})",+ "tray.turnOnPreviewAxis": "Activar el eje de previsualización ({0})","tray.undo": "Deshacer ({0})","tray.zoomToFit": "Ajustar a la vista","voiceover.added": "Voz en off añadida a la línea de tiempo",diff --git a/src/crates/concat/locales/fa.json b/src/crates/concat/locales/fa.jsonindex 4aa11fa5..b450a7f0 100644--- a/src/crates/concat/locales/fa.json+++ b/src/crates/concat/locales/fa.json@@ -424,6 +424,7 @@"settings.scaleSystem": "System","settings.scriptsAndApps": "اسکریپتها و برنامهها","settings.servesConcatApiWhile": "تا وقتی پنجره باز است، Concat API را ارائه میکند تا Script یا برنامه دیگری بتواند پروژهها خودش را ایجاد، ویرایش و خروجی گرفتن کند. هر چیزی که متصل شود میتواند مانند شما فایلها را خواندن و نوشتن کند.",+ "settings.shortcuts": "میانبرها","settings.showTheLog": "نمایش گزارش","settings.showTheToken": "نمایش Token","settings.sky": "آسمان",@@ -442,6 +443,20 @@"settings.voices": "صداها","settings.whatConnectionMustPresent": "چیزی که اتصال باید پیش از اولین درخواست ارائه کند. اگر خالی بماند، سرور هر بار هنگام راهاندازی یک Token جدید میسازد و آن را اینجا نشان میدهد.","settings.whereEachModelCame": "منبع هر مدل",+ "shortcuts.cutLeft": "بریدن در سمت چپ نشانگر پخش",+ "shortcuts.cutRight": "بریدن در سمت راست نشانگر پخش",+ "shortcuts.hint": "روی یک ردیف کلیک کنید، سپس کلیدهایی را بزنید که باید به آنها پاسخ دهد. Escape انصراف میدهد؛ ترکیبی که عمل دیگری در اختیار دارد به اینجا منتقل میشود و آن عمل را تا زمانی که بازنشانیِ خودش کلیدی برگرداند، بدون کلید میگذارد. چند ترکیب متعلق به پنجره است و قابل تخصیص نیست.",+ "shortcuts.pan": "ابزار Pan",+ "shortcuts.press": "یک کلید را بزنید…",+ "shortcuts.previewAxis": "محور پیشنمایش",+ "shortcuts.reserved": "این ترکیب متعلق به پنجره است",+ "shortcuts.resetAll": "بازنشانی همه",+ "shortcuts.rippleDelete": "حذف و بستن فاصله",+ "shortcuts.selectAll": "انتخاب همه",+ "shortcuts.splitTool": "ابزار برش",+ "shortcuts.stepBack": "یک فریم به عقب",+ "shortcuts.stepForward": "یک فریم به جلو",+ "shortcuts.unboundNow": "{0} اکنون بدون کلید است","speech.aboutInCharacters": "حدود {0}:{1} در {2} · {3} کاراکتر","speech.american": "آمریکایی","speech.anyVoiceRecording": "هر صدایی، از یک ضبط",@@ -676,18 +691,18 @@"tray.generateCaptions": "ساخت زیرنویسها","tray.hideMeters": "پنهان کردن نمایشگرهای سطح صدا","tray.magneticTimelineDeletingTrimming": "تایملاین مغناطیسی: حذف و برش فاصله را میبندند",- "tray.panTool": "ابزار Pan (H)",+ "tray.panTool": "ابزار Pan ({0})","tray.playerFollowsResizePlayhead": "پخشکننده برش را دنبال میکند: نشانگر پخش همراه لبهای که برش میدهید حرکت میکند","tray.previewAxisOptions": "گزینههای محور پیشنمایش","tray.recordVoiceover": "ضبط صداگذاری","tray.redo": "انجام مجدد ({0})","tray.showMeters": "نمایش نمایشگرهای سطح صدا: بلندی صدای خط زمانی","tray.splitAtPlayhead": "تقسیم در نشانگر پخش ({0})",- "tray.splitTool": "ابزار برش (B): روی کلیپ کلیک کنید تا همانجا بریده شود",+ "tray.splitTool": "ابزار برش ({0}): روی کلیپ کلیک کنید تا همانجا بریده شود","tray.stopRecording": "توقف ضبط","tray.textToSpeech": "تبدیل متن به گفتار",- "tray.turnOffPreviewAxis": "خاموش کردن محور پیشنمایش (S)",- "tray.turnOnPreviewAxis": "روشن کردن محور پیشنمایش (S)",+ "tray.turnOffPreviewAxis": "خاموش کردن محور پیشنمایش ({0})",+ "tray.turnOnPreviewAxis": "روشن کردن محور پیشنمایش ({0})","tray.undo": "واگرد ({0})","tray.zoomToFit": "بزرگنمایی متناسب","voiceover.added": "صداگذاری به خط زمانی اضافه شد",diff --git a/src/crates/concat/locales/fr.json b/src/crates/concat/locales/fr.jsonindex e02d2e5d..78bd3fe7 100644--- a/src/crates/concat/locales/fr.json+++ b/src/crates/concat/locales/fr.json@@ -424,6 +424,7 @@"settings.scaleSystem": "System","settings.scriptsAndApps": "Scripts et applications","settings.servesConcatApiWhile": "Sert l'API Concat tant que la fenêtre est ouverte, pour qu'un script ou un autre programme crée, modifie et exporte ses propres projets. Tout ce qui se connecte peut lire et écrire des fichiers comme vous.",+ "settings.shortcuts": "Raccourcis","settings.showTheLog": "Afficher le journal","settings.showTheToken": "Afficher le jeton","settings.sky": "Sky",@@ -442,6 +443,19 @@"settings.voices": "Voix","settings.whatConnectionMustPresent": "Ce qu'une connexion doit présenter avant son premier appel. Laissé vide, le serveur en invente un à chaque démarrage et l'affiche ici.","settings.whereEachModelCame": "D'où vient chaque modèle",+ "shortcuts.cutLeft": "Couper à gauche de la tête de lecture",+ "shortcuts.cutRight": "Couper à droite de la tête de lecture",+ "shortcuts.hint": "Cliquez sur une ligne, puis appuyez sur les touches auxquelles elle doit répondre. Échap annule, et une combinaison détenue par une autre action passe ici, laissant cette action sans touche jusqu'à ce que sa propre réinitialisation en remette une. Certaines combinaisons appartiennent à la fenêtre et ne peuvent pas être attribuées.",+ "shortcuts.press": "Appuyez sur une touche…",+ "shortcuts.previewAxis": "Axe d'aperçu",+ "shortcuts.reserved": "Cette combinaison appartient à la fenêtre",+ "shortcuts.resetAll": "Tout réinitialiser",+ "shortcuts.rippleDelete": "Supprimer et fermer l'espace",+ "shortcuts.selectAll": "Tout sélectionner",+ "shortcuts.splitTool": "Outil de coupe",+ "shortcuts.stepBack": "Reculer d'une image",+ "shortcuts.stepForward": "Avancer d'une image",+ "shortcuts.unboundNow": "{0} n'a plus de touche","speech.aboutInCharacters": "Environ {0}:{1} en {2} · {3} caractères","speech.american": "Américain","speech.anyVoiceRecording": "N'importe quelle voix, à partir d'un enregistrement",@@ -676,18 +690,17 @@"tray.generateCaptions": "Générer les sous-titres","tray.hideMeters": "Masquer les vumètres","tray.magneticTimelineDeletingTrimming": "Timeline magnétique : la suppression et le rognage referment l'espace",- "tray.panTool": "Pan tool (H)","tray.playerFollowsResizePlayhead": "Le lecteur suit le rognage : la tête de lecture accompagne le bord que vous rognez","tray.previewAxisOptions": "Options de l'axe d'aperçu","tray.recordVoiceover": "Enregistrer une voix off","tray.redo": "Rétablir ({0})","tray.showMeters": "Afficher les vumètres : le volume de lecture de la timeline","tray.splitAtPlayhead": "Couper à la tête de lecture ({0})",- "tray.splitTool": "Outil de coupe (B) : cliquez sur un clip pour le couper là",+ "tray.splitTool": "Outil de coupe ({0}) : cliquez sur un clip pour le couper là","tray.stopRecording": "Arrêter l'enregistrement","tray.textToSpeech": "Synthèse vocale",- "tray.turnOffPreviewAxis": "Désactiver l'axe d'aperçu (S)",- "tray.turnOnPreviewAxis": "Activer l'axe d'aperçu (S)",+ "tray.turnOffPreviewAxis": "Désactiver l'axe d'aperçu ({0})",+ "tray.turnOnPreviewAxis": "Activer l'axe d'aperçu ({0})","tray.undo": "Annuler ({0})","tray.zoomToFit": "Ajuster à la vue","voiceover.added": "Voix off ajoutée à la timeline",diff --git a/src/crates/concat/locales/he.json b/src/crates/concat/locales/he.jsonindex c76f9f26..0aea70c2 100644--- a/src/crates/concat/locales/he.json+++ b/src/crates/concat/locales/he.json@@ -676,18 +676,18 @@"tray.generateCaptions": "יצירת כתוביות","tray.hideMeters": "הסתרת מדי העוצמה","tray.magneticTimelineDeletingTrimming": "ציר זמן מגנטי: מחיקה וקיצוץ סוגרים את הרווח",- "tray.panTool": "כלי הזזה (H)",+ "tray.panTool": "כלי הזזה ({0})","tray.playerFollowsResizePlayhead": "הנגן עוקב אחר שינוי הגודל: סמן ההפעלה נע עם הקצה שמקצצים","tray.previewAxisOptions": "אפשרויות ציר התצוגה המקדימה","tray.recordVoiceover": "הקלטת קריינות","tray.redo": "ביצוע מחדש ({0})","tray.showMeters": "הצגת מדי העוצמה: כמה חזק ציר הזמן מתנגן","tray.splitAtPlayhead": "פיצול בסמן ההפעלה ({0})",- "tray.splitTool": "כלי פיצול (B): לחיצה על קליפ חותכת אותו שם",+ "tray.splitTool": "כלי פיצול ({0}): לחיצה על קליפ חותכת אותו שם","tray.stopRecording": "עצירת ההקלטה","tray.textToSpeech": "המרת טקסט לדיבור",- "tray.turnOffPreviewAxis": "כיבוי ציר התצוגה המקדימה (S)",- "tray.turnOnPreviewAxis": "הפעלת ציר התצוגה המקדימה (S)",+ "tray.turnOffPreviewAxis": "כיבוי ציר התצוגה המקדימה ({0})",+ "tray.turnOnPreviewAxis": "הפעלת ציר התצוגה המקדימה ({0})","tray.undo": "ביטול פעולה ({0})","tray.zoomToFit": "זום להתאמה","voiceover.added": "הקריינות נוספה לציר הזמן",diff --git a/src/crates/concat/locales/hi.json b/src/crates/concat/locales/hi.jsonindex 1a816f53..c82b6009 100644--- a/src/crates/concat/locales/hi.json+++ b/src/crates/concat/locales/hi.json@@ -676,18 +676,18 @@"tray.generateCaptions": "कैप्शन बनाएं","tray.hideMeters": "लेवल मीटर छिपाएँ","tray.magneticTimelineDeletingTrimming": "मैग्नेटिक टाइमलाइन: मिटाने और ट्रिम करने पर खाली जगह भर जाती है",- "tray.panTool": "पैन टूल (H)",+ "tray.panTool": "पैन टूल ({0})","tray.playerFollowsResizePlayhead": "प्लेयर आकार बदलने के साथ चलता है: प्लेहेड उस किनारे के साथ चलता है जिसे आप ट्रिम करते हैं","tray.previewAxisOptions": "प्रीव्यू अक्ष विकल्प","tray.recordVoiceover": "वॉइसओवर रिकॉर्ड करें","tray.redo": "फिर से करें ({0})","tray.showMeters": "लेवल मीटर दिखाएँ: टाइमलाइन कितनी ज़ोर से बज रही है","tray.splitAtPlayhead": "प्लेहेड पर विभाजित करें ({0})",- "tray.splitTool": "स्प्लिट टूल (B): किसी क्लिप को वहीं काटने के लिए उस पर क्लिक करें",+ "tray.splitTool": "स्प्लिट टूल ({0}): किसी क्लिप को वहीं काटने के लिए उस पर क्लिक करें","tray.stopRecording": "रिकॉर्डिंग रोकें","tray.textToSpeech": "टेक्स्ट से आवाज़",- "tray.turnOffPreviewAxis": "प्रीव्यू अक्ष बंद करें (S)",- "tray.turnOnPreviewAxis": "प्रीव्यू अक्ष चालू करें (S)",+ "tray.turnOffPreviewAxis": "प्रीव्यू अक्ष बंद करें ({0})",+ "tray.turnOnPreviewAxis": "प्रीव्यू अक्ष चालू करें ({0})","tray.undo": "पहले जैसा करें ({0})","tray.zoomToFit": "फ़िट करने के लिए ज़ूम करें","voiceover.added": "वॉइसओवर टाइमलाइन में जोड़ा गया",diff --git a/src/crates/concat/locales/hr.json b/src/crates/concat/locales/hr.jsonindex 06e124b1..f570640f 100644--- a/src/crates/concat/locales/hr.json+++ b/src/crates/concat/locales/hr.json@@ -424,6 +424,7 @@"settings.scaleSystem": "System","settings.scriptsAndApps": "Skripte i aplikacije","settings.servesConcatApiWhile": "Poslužuje Concat API dok je prozor otvoren, pa skripta ili drugi program može stvarati, uređivati i izvoziti vlastite projekte. Sve što se poveže može čitati i pisati datoteke kao i vi.",+ "settings.shortcuts": "Prečaci","settings.showTheLog": "Prikaži zapisnik","settings.showTheToken": "Prikaži token","settings.sky": "Nebo",@@ -442,6 +443,19 @@"settings.voices": "Glasovi","settings.whatConnectionMustPresent": "Što veza mora predočiti prije prvog poziva. Ostane li prazno, poslužitelj ga sam smisli pri svakom pokretanju i prikaže ovdje.","settings.whereEachModelCame": "Odakle svaki model dolazi",+ "shortcuts.cutLeft": "Reži lijevo od playheada",+ "shortcuts.cutRight": "Reži desno od playheada",+ "shortcuts.hint": "Klikni red, a zatim pritisni tipke na koje treba odgovarati. Escape odustaje, a kombinacija koju drži druga akcija prelazi ovdje, ostavljajući tu akciju bez tipke dok je njezino vraćanje na zadano ponovno ne vrati. Neke kombinacije pripadaju prozoru i ne mogu se vezati.",+ "shortcuts.press": "Pritisni tipku…",+ "shortcuts.previewAxis": "Os pregleda",+ "shortcuts.reserved": "Ta kombinacija pripada prozoru",+ "shortcuts.resetAll": "Vrati sve na zadano",+ "shortcuts.rippleDelete": "Obriši i zatvori razmak",+ "shortcuts.selectAll": "Odaberi sve",+ "shortcuts.splitTool": "Alat za rezanje",+ "shortcuts.stepBack": "Natrag jedan kadar",+ "shortcuts.stepForward": "Naprijed jedan kadar",+ "shortcuts.unboundNow": "{0} više nema tipku","speech.aboutInCharacters": "Oko {0}:{1} u {2} · {3} znakova","speech.american": "američki","speech.anyVoiceRecording": "Bilo koji glas, iz snimke",@@ -676,18 +690,17 @@"tray.generateCaptions": "Generiraj titlove","tray.hideMeters": "Sakrij mjerače razine","tray.magneticTimelineDeletingTrimming": "Magnetska vremenska linija: brisanje i skraćivanje zatvaraju prazninu",- "tray.panTool": "Pan tool (H)","tray.playerFollowsResizePlayhead": "Reprodukcija prati skraćivanje: glava za reprodukciju prati rub koji skraćujete","tray.previewAxisOptions": "Mogućnosti osi pregleda","tray.recordVoiceover": "Snimi glas","tray.redo": "Ponovi ({0})","tray.showMeters": "Prikaži mjerače razine: koliko glasno vremenska crta svira","tray.splitAtPlayhead": "Podijeli na playheadu ({0})",- "tray.splitTool": "Alat za rezanje (B): klik na klip reže ga ondje",+ "tray.splitTool": "Alat za rezanje ({0}): klik na klip reže ga ondje","tray.stopRecording": "Zaustavi snimanje","tray.textToSpeech": "Tekst u govor",- "tray.turnOffPreviewAxis": "Isključi os pregleda (S)",- "tray.turnOnPreviewAxis": "Uključi os pregleda (S)",+ "tray.turnOffPreviewAxis": "Isključi os pregleda ({0})",+ "tray.turnOnPreviewAxis": "Uključi os pregleda ({0})","tray.undo": "Poništi ({0})","tray.zoomToFit": "Povećaj da stane","voiceover.added": "Glas dodan na vremensku crtu",diff --git a/src/crates/concat/locales/id.json b/src/crates/concat/locales/id.jsonindex 0a3d1ff8..55c2300b 100644--- a/src/crates/concat/locales/id.json+++ b/src/crates/concat/locales/id.json@@ -676,18 +676,18 @@"tray.generateCaptions": "Buat Subtitel","tray.hideMeters": "Sembunyikan meter level","tray.magneticTimelineDeletingTrimming": "Linimasa magnetis: menghapus dan memotong akan menutup celah",- "tray.panTool": "Alat geser (H)",+ "tray.panTool": "Alat geser ({0})","tray.playerFollowsResizePlayhead": "Pemutar mengikuti perubahan ukuran: penanda putar mengikuti tepi yang Anda potong","tray.previewAxisOptions": "Opsi sumbu pratinjau","tray.recordVoiceover": "Rekam Sulih Suara","tray.redo": "Ulangi ({0})","tray.showMeters": "Tampilkan meter level: seberapa keras timeline berbunyi","tray.splitAtPlayhead": "Pisahkan di penanda putar ({0})",- "tray.splitTool": "Alat pisah (B): klik klip untuk memotongnya di titik itu",+ "tray.splitTool": "Alat pisah ({0}): klik klip untuk memotongnya di titik itu","tray.stopRecording": "Hentikan Rekaman","tray.textToSpeech": "Teks ke Ucapan",- "tray.turnOffPreviewAxis": "Matikan Sumbu Pratinjau (S)",- "tray.turnOnPreviewAxis": "Nyalakan Sumbu Pratinjau (S)",+ "tray.turnOffPreviewAxis": "Matikan Sumbu Pratinjau ({0})",+ "tray.turnOnPreviewAxis": "Nyalakan Sumbu Pratinjau ({0})","tray.undo": "Urungkan ({0})","tray.zoomToFit": "Zoom agar pas","voiceover.added": "Sulih suara ditambahkan ke linimasa",diff --git a/src/crates/concat/locales/it.json b/src/crates/concat/locales/it.jsonindex 9f7c79d5..2ff1e400 100644--- a/src/crates/concat/locales/it.json+++ b/src/crates/concat/locales/it.json@@ -424,6 +424,7 @@"settings.scaleSystem": "System","settings.scriptsAndApps": "Script e app","settings.servesConcatApiWhile": "Serve l'API di Concat finché la finestra è aperta, così uno script o un altro programma può creare, modificare ed esportare progetti propri. Tutto ciò che si connette può leggere e scrivere file come te.",+ "settings.shortcuts": "Scorciatoie","settings.showTheLog": "Mostra il registro","settings.showTheToken": "Mostra il token","settings.sky": "Sky",@@ -442,6 +443,19 @@"settings.voices": "Voci","settings.whatConnectionMustPresent": "Ciò che una connessione deve presentare prima della prima chiamata. Se lasciato vuoto, il server ne inventa uno a ogni avvio e lo mostra qui.","settings.whereEachModelCame": "Da dove viene ogni modello",+ "shortcuts.cutLeft": "Taglia a sinistra della testina",+ "shortcuts.cutRight": "Taglia a destra della testina",+ "shortcuts.hint": "Clicca una riga, poi premi i tasti a cui deve rispondere. Esc annulla, e una combinazione tenuta da un'altra azione passa qui, lasciando quell'azione senza tasto finché il suo Reimposta non ne rimette una. Alcune combinazioni appartengono alla finestra e non possono essere assegnate.",+ "shortcuts.press": "Premi un tasto…",+ "shortcuts.previewAxis": "Asse di anteprima",+ "shortcuts.reserved": "Quella combinazione appartiene alla finestra",+ "shortcuts.resetAll": "Reimposta tutto",+ "shortcuts.rippleDelete": "Elimina e chiudi lo spazio",+ "shortcuts.selectAll": "Seleziona tutto",+ "shortcuts.splitTool": "Strumento di taglio",+ "shortcuts.stepBack": "Torna indietro di un fotogramma",+ "shortcuts.stepForward": "Avanza di un fotogramma",+ "shortcuts.unboundNow": "{0} non ha più un tasto","speech.aboutInCharacters": "Circa {0}:{1} in {2} · {3} caratteri","speech.american": "Americano","speech.anyVoiceRecording": "Qualsiasi voce, da una registrazione",@@ -676,18 +690,17 @@"tray.generateCaptions": "Genera sottotitoli","tray.hideMeters": "Nascondi gli indicatori di livello","tray.magneticTimelineDeletingTrimming": "Timeline magnetica: eliminare e accorciare chiudono lo spazio",- "tray.panTool": "Pan tool (H)","tray.playerFollowsResizePlayhead": "Il player segue l'accorciamento: la testina di riproduzione segue il bordo che accorci","tray.previewAxisOptions": "Opzioni dell'asse di anteprima","tray.recordVoiceover": "Registra voce fuori campo","tray.redo": "Ripeti ({0})","tray.showMeters": "Mostra gli indicatori di livello: quanto forte suona la timeline","tray.splitAtPlayhead": "Dividi alla testina ({0})",- "tray.splitTool": "Strumento taglio (B): clic su una clip per tagliarla lì",+ "tray.splitTool": "Strumento taglio ({0}): clic su una clip per tagliarla lì","tray.stopRecording": "Interrompi registrazione","tray.textToSpeech": "Sintesi vocale",- "tray.turnOffPreviewAxis": "Disattiva l'asse di anteprima (S)",- "tray.turnOnPreviewAxis": "Attiva l'asse di anteprima (S)",+ "tray.turnOffPreviewAxis": "Disattiva l'asse di anteprima ({0})",+ "tray.turnOnPreviewAxis": "Attiva l'asse di anteprima ({0})","tray.undo": "Annulla ({0})","tray.zoomToFit": "Adatta alla vista","voiceover.added": "Voce fuori campo aggiunta alla timeline",diff --git a/src/crates/concat/locales/ja.json b/src/crates/concat/locales/ja.jsonindex 13202d77..6d2e0e0b 100644--- a/src/crates/concat/locales/ja.json+++ b/src/crates/concat/locales/ja.json@@ -424,6 +424,7 @@"settings.scaleSystem": "System","settings.scriptsAndApps": "スクリプトとアプリ","settings.servesConcatApiWhile": "ウィンドウが開いている間 Concat API を提供し、スクリプトや他のプログラムが自分のプロジェクトを作成・編集・書き出しできるようにします。接続したものはあなたと同じようにファイルを読み書きできます。",+ "settings.shortcuts": "ショートカット","settings.showTheLog": "ログを表示","settings.showTheToken": "トークンを表示","settings.sky": "スカイ",@@ -442,6 +443,19 @@"settings.voices": "声","settings.whatConnectionMustPresent": "接続が最初の呼び出しの前に提示するもの。空のままにすると、サーバーは起動のたびに自分で作り、ここに表示します。","settings.whereEachModelCame": "各モデルの元の場所",+ "shortcuts.cutLeft": "再生ヘッドの左側を切り取る",+ "shortcuts.cutRight": "再生ヘッドの右側を切り取る",+ "shortcuts.hint": "行をクリックしてから、応答すべきキーを押してください。Esc でキャンセルします。他のアクションが保持しているキー組み合わせはここに移動し、そのアクションは独自のリセットでキーが戻るまで割り当てなしになります。ウィンドウ専用の組み合わせは割り当てられません。",+ "shortcuts.press": "キーを押してください…",+ "shortcuts.previewAxis": "プレビュー軸",+ "shortcuts.reserved": "そのキー組み合わせはウィンドウ専用です",+ "shortcuts.resetAll": "すべてリセット",+ "shortcuts.rippleDelete": "削除して隙間を詰める",+ "shortcuts.selectAll": "すべて選択",+ "shortcuts.splitTool": "分割ツール",+ "shortcuts.stepBack": "1フレーム戻る",+ "shortcuts.stepForward": "1フレーム進む",+ "shortcuts.unboundNow": "{0} は現在割り当てされていません","speech.aboutInCharacters": "約 {0}:{1} ({2}) · {3} 文字","speech.american": "アメリカ","speech.anyVoiceRecording": "録音から、どんな声でも",@@ -676,18 +690,18 @@"tray.generateCaptions": "字幕を生成","tray.hideMeters": "レベルメーターを隠す","tray.magneticTimelineDeletingTrimming": "マグネティックタイムライン : 削除やトリミングで隙間が詰まります",- "tray.panTool": "パンツール (H)",+ "tray.panTool": "パンツール ({0})","tray.playerFollowsResizePlayhead": "プレーヤーがトリミングに追従 : 再生ヘッドがトリミング中の端に合わせて動きます","tray.previewAxisOptions": "プレビュー軸のオプション","tray.recordVoiceover": "ナレーションを録音","tray.redo": "やり直す ({0})","tray.showMeters": "レベルメーターを表示:タイムラインの再生音量","tray.splitAtPlayhead": "再生ヘッドで分割 ({0})",- "tray.splitTool": "分割ツール (B): クリップをクリックした位置で切る",+ "tray.splitTool": "分割ツール ({0}): クリップをクリックした位置で切る","tray.stopRecording": "録音を停止","tray.textToSpeech": "テキスト読み上げ",- "tray.turnOffPreviewAxis": "プレビュー軸をオフにする (S)",- "tray.turnOnPreviewAxis": "プレビュー軸をオンにする (S)",+ "tray.turnOffPreviewAxis": "プレビュー軸をオフにする ({0})",+ "tray.turnOnPreviewAxis": "プレビュー軸をオンにする ({0})","tray.undo": "元に戻す ({0})","tray.zoomToFit": "全体を表示","voiceover.added": "ナレーションをタイムラインに追加しました",diff --git a/src/crates/concat/locales/ko.json b/src/crates/concat/locales/ko.jsonindex 8807f4f2..e0d55fff 100644--- a/src/crates/concat/locales/ko.json+++ b/src/crates/concat/locales/ko.json@@ -424,6 +424,7 @@"settings.scaleSystem": "System","settings.scriptsAndApps": "스크립트와 앱","settings.servesConcatApiWhile": "창이 열려 있는 동안 Concat API를 제공하여 스크립트나 다른 프로그램이 자체 프로젝트를 만들고, 편집하고, 내보낼 수 있게 합니다. 연결한 것은 무엇이든 사용자와 똑같이 파일을 읽고 쓸 수 있습니다.",+ "settings.shortcuts": "단축키","settings.showTheLog": "로그 표시","settings.showTheToken": "토큰 보기","settings.sky": "Sky",@@ -442,6 +443,19 @@"settings.voices": "목소리","settings.whatConnectionMustPresent": "연결이 첫 호출 전에 제시해야 하는 값입니다. 비워 두면 서버가 시작할 때마다 하나를 만들어 여기에 표시합니다.","settings.whereEachModelCame": "각 모델의 원래 출처",+ "shortcuts.cutLeft": "재생 헤드 왼쪽 자르기",+ "shortcuts.cutRight": "재생 헤드 오른쪽 자르기",+ "shortcuts.hint": "행을 클릭한 다음, 그 행이 응답할 키를 누르세요. Esc는 취소하고, 다른 작업이 쓰고 있는 조합은 여기로 넘어가 해당 작업은 자체 초기화로 키를 되찾을 때까지 연결되지 않습니다. 일부 조합은 창에 속해 있어 지정할 수 없습니다.",+ "shortcuts.press": "키를 누르세요…",+ "shortcuts.previewAxis": "미리보기 축",+ "shortcuts.reserved": "해당 조합은 창에 속합니다",+ "shortcuts.resetAll": "모두 초기화",+ "shortcuts.rippleDelete": "삭제하고 간격 닫기",+ "shortcuts.selectAll": "모두 선택",+ "shortcuts.splitTool": "자르기 도구",+ "shortcuts.stepBack": "1프레임 뒤로",+ "shortcuts.stepForward": "1프레임 앞으로",+ "shortcuts.unboundNow": "{0}에 키가 없습니다","speech.aboutInCharacters": "약 {0}:{1} ({2}) · {3}자","speech.american": "미국식","speech.anyVoiceRecording": "녹음에서 딴 어떤 목소리든",@@ -676,18 +690,17 @@"tray.generateCaptions": "자막 생성","tray.hideMeters": "레벨 미터 숨기기","tray.magneticTimelineDeletingTrimming": "자석 타임라인: 삭제와 다듬기가 빈틈을 닫습니다",- "tray.panTool": "Pan tool (H)","tray.playerFollowsResizePlayhead": "플레이어가 다듬기를 따라감: 재생 헤드가 다듬는 가장자리를 따라 움직입니다","tray.previewAxisOptions": "미리보기 축 옵션","tray.recordVoiceover": "내레이션 녹음","tray.redo": "다시 실행 ({0})","tray.showMeters": "레벨 미터 표시: 타임라인이 재생되는 음량","tray.splitAtPlayhead": "재생 헤드에서 나누기 ({0})",- "tray.splitTool": "자르기 도구 (B): 클립을 클릭한 곳에서 자릅니다",+ "tray.splitTool": "자르기 도구 ({0}): 클립을 클릭한 곳에서 자릅니다","tray.stopRecording": "녹음 중지","tray.textToSpeech": "텍스트 음성 변환",- "tray.turnOffPreviewAxis": "미리보기 축 끄기 (S)",- "tray.turnOnPreviewAxis": "미리보기 축 켜기 (S)",+ "tray.turnOffPreviewAxis": "미리보기 축 끄기 ({0})",+ "tray.turnOnPreviewAxis": "미리보기 축 켜기 ({0})","tray.undo": "실행 취소 ({0})","tray.zoomToFit": "화면에 맞추기","voiceover.added": "내레이션을 타임라인에 추가했습니다",diff --git a/src/crates/concat/locales/nl.json b/src/crates/concat/locales/nl.jsonindex d0157693..b344c0d3 100644--- a/src/crates/concat/locales/nl.json+++ b/src/crates/concat/locales/nl.json@@ -676,18 +676,18 @@"tray.generateCaptions": "Ondertitels genereren","tray.hideMeters": "Niveaumeters verbergen","tray.magneticTimelineDeletingTrimming": "Magnetische tijdlijn: verwijderen en inkorten sluiten de opening",- "tray.panTool": "Handje (H)",+ "tray.panTool": "Handje ({0})","tray.playerFollowsResizePlayhead": "Speler volgt het inkorten: de afspeelkop rijdt mee met de rand die je inkort","tray.previewAxisOptions": "Opties voor voorvertoningsas","tray.recordVoiceover": "Voice-over opnemen","tray.redo": "Opnieuw ({0})","tray.showMeters": "Niveaumeters tonen: hoe luid de tijdlijn speelt","tray.splitAtPlayhead": "Splitsen bij afspeelkop ({0})",- "tray.splitTool": "Splitsgereedschap (B): klik op een clip om hem daar te knippen",+ "tray.splitTool": "Splitsgereedschap ({0}): klik op een clip om hem daar te knippen","tray.stopRecording": "Opname stoppen","tray.textToSpeech": "Tekst naar spraak",- "tray.turnOffPreviewAxis": "Voorvertoningsas uitschakelen (S)",- "tray.turnOnPreviewAxis": "Voorvertoningsas inschakelen (S)",+ "tray.turnOffPreviewAxis": "Voorvertoningsas uitschakelen ({0})",+ "tray.turnOnPreviewAxis": "Voorvertoningsas inschakelen ({0})","tray.undo": "Ongedaan maken ({0})","tray.zoomToFit": "Passend zoomen","voiceover.added": "Voice-over toegevoegd aan de tijdlijn",diff --git a/src/crates/concat/locales/pl.json b/src/crates/concat/locales/pl.jsonindex 822caf26..5ac41847 100644--- a/src/crates/concat/locales/pl.json+++ b/src/crates/concat/locales/pl.json@@ -676,18 +676,18 @@"tray.generateCaptions": "Generuj napisy","tray.hideMeters": "Ukryj wskaźniki poziomu","tray.magneticTimelineDeletingTrimming": "Magnetyczna oś czasu: usuwanie i przycinanie zamykają lukę",- "tray.panTool": "Narzędzie Rączka (H)",+ "tray.panTool": "Narzędzie Rączka ({0})","tray.playerFollowsResizePlayhead": "Odtwarzacz podąża za przycinaniem: głowica jedzie z przycinaną krawędzią","tray.previewAxisOptions": "Opcje osi podglądu","tray.recordVoiceover": "Nagraj lektora","tray.redo": "Ponów ({0})","tray.showMeters": "Pokaż wskaźniki poziomu: jak głośno gra oś czasu","tray.splitAtPlayhead": "Podziel na głowicy ({0})",- "tray.splitTool": "Narzędzie podziału (B): kliknij klip, aby go tam przeciąć",+ "tray.splitTool": "Narzędzie podziału ({0}): kliknij klip, aby go tam przeciąć","tray.stopRecording": "Zatrzymaj nagrywanie","tray.textToSpeech": "Zamiana tekstu na mowę",- "tray.turnOffPreviewAxis": "Wyłącz oś podglądu (S)",- "tray.turnOnPreviewAxis": "Włącz oś podglądu (S)",+ "tray.turnOffPreviewAxis": "Wyłącz oś podglądu ({0})",+ "tray.turnOnPreviewAxis": "Włącz oś podglądu ({0})","tray.undo": "Cofnij ({0})","tray.zoomToFit": "Dopasuj do okna","voiceover.added": "Nagranie lektora dodane do osi czasu",diff --git a/src/crates/concat/locales/pt-BR.json b/src/crates/concat/locales/pt-BR.jsonindex 187be3a9..9e963950 100644--- a/src/crates/concat/locales/pt-BR.json+++ b/src/crates/concat/locales/pt-BR.json@@ -424,6 +424,7 @@"settings.scaleSystem": "Sistema","settings.scriptsAndApps": "Scripts e apps","settings.servesConcatApiWhile": "Serve a API do Concat enquanto a janela estiver aberta, para que um script ou outro programa crie, edite e exporte projetos próprios. Tudo que se conectar pode ler e gravar arquivos como você.",+ "settings.shortcuts": "Atalhos","settings.showTheLog": "Mostrar o log","settings.showTheToken": "Mostrar o token","settings.sky": "Céu",@@ -442,6 +443,19 @@"settings.voices": "Vozes","settings.whatConnectionMustPresent": "O que uma conexão precisa apresentar antes da primeira chamada. Se ficar vazio, o servidor inventa um a cada início e o mostra aqui.","settings.whereEachModelCame": "De onde cada modelo veio",+ "shortcuts.cutLeft": "Cortar à esquerda do cursor",+ "shortcuts.cutRight": "Cortar à direita do cursor",+ "shortcuts.hint": "Clique em uma linha e depois pressione as teclas a que ela deve responder. Esc cancela, e uma combinação que outra ação detém passa para cá, deixando essa ação sem tecla até que o próprio Redefinir devolva uma. Algumas combinações pertencem à janela e não podem ser atribuídas.",+ "shortcuts.press": "Pressione uma tecla…",+ "shortcuts.previewAxis": "Eixo de prévia",+ "shortcuts.reserved": "Essa combinação pertence à janela",+ "shortcuts.resetAll": "Redefinir tudo",+ "shortcuts.rippleDelete": "Excluir e fechar o espaço",+ "shortcuts.selectAll": "Selecionar tudo",+ "shortcuts.splitTool": "Ferramenta de corte",+ "shortcuts.stepBack": "Voltar um quadro",+ "shortcuts.stepForward": "Avançar um quadro",+ "shortcuts.unboundNow": "{0} não tem tecla agora","speech.aboutInCharacters": "Cerca de {0}:{1} em {2} · {3} caracteres","speech.american": "Americano","speech.anyVoiceRecording": "Qualquer voz, a partir de uma gravação",@@ -676,18 +690,18 @@"tray.generateCaptions": "Gerar legendas","tray.hideMeters": "Ocultar os medidores de nível","tray.magneticTimelineDeletingTrimming": "Linha do tempo magnética: excluir e aparar fecham a lacuna",- "tray.panTool": "Ferramenta mão (H)",+ "tray.panTool": "Ferramenta mão ({0})","tray.playerFollowsResizePlayhead": "O player acompanha o corte: a agulha segue a borda que você arrasta","tray.previewAxisOptions": "Opções do eixo de prévia","tray.recordVoiceover": "Gravar narração","tray.redo": "Refazer ({0})","tray.showMeters": "Mostrar os medidores de nível: o volume em que a linha do tempo toca","tray.splitAtPlayhead": "Dividir no cursor ({0})",- "tray.splitTool": "Ferramenta de corte (B): clique em um clipe para cortá-lo ali",+ "tray.splitTool": "Ferramenta de corte ({0}): clique em um clipe para cortá-lo ali","tray.stopRecording": "Parar gravação","tray.textToSpeech": "Texto para fala",- "tray.turnOffPreviewAxis": "Desligar o eixo de prévia (S)",- "tray.turnOnPreviewAxis": "Ligar o eixo de prévia (S)",+ "tray.turnOffPreviewAxis": "Desligar o eixo de prévia ({0})",+ "tray.turnOnPreviewAxis": "Ligar o eixo de prévia ({0})","tray.undo": "Desfazer ({0})","tray.zoomToFit": "Ajustar à janela","voiceover.added": "Narração adicionada à linha do tempo",diff --git a/src/crates/concat/locales/ru.json b/src/crates/concat/locales/ru.jsonindex 4096eaed..710f3d34 100644--- a/src/crates/concat/locales/ru.json+++ b/src/crates/concat/locales/ru.json@@ -424,6 +424,7 @@"settings.scaleSystem": "System","settings.scriptsAndApps": "Скрипты и приложения","settings.servesConcatApiWhile": "Раздаёт API Concat, пока окно открыто, чтобы скрипт или другая программа могли создавать, редактировать и экспортировать свои проекты. Всё, что подключится, сможет читать и записывать файлы так же, как вы.",+ "settings.shortcuts": "Горячие клавиши","settings.showTheLog": "Показать журнал","settings.showTheToken": "Показать токен","settings.sky": "Небо",@@ -442,6 +443,20 @@"settings.voices": "Голоса","settings.whatConnectionMustPresent": "Что соединение должно предъявить перед первым вызовом. Если оставить пустым, сервер сам придумает его при каждом запуске и покажет здесь.","settings.whereEachModelCame": "Откуда взята каждая модель",+ "shortcuts.cutLeft": "Резать слева от курсора",+ "shortcuts.cutRight": "Резать справа от курсора",+ "shortcuts.hint": "Нажмите на строку, затем задайте клавиши, на которые она должна отзываться. Esc отменяет, а комбинация, занятая другим действием, переходит сюда, оставляя это действие без клавиши, пока его собственный Сброс не вернёт одну. Некоторые комбинации принадлежат окну и не назначаются.",+ "shortcuts.pan": "Инструмент «Рука»",+ "shortcuts.press": "Нажмите клавишу…",+ "shortcuts.previewAxis": "Ось предпросмотра",+ "shortcuts.reserved": "Эта комбинация принадлежит окну",+ "shortcuts.resetAll": "Сбросить всё",+ "shortcuts.rippleDelete": "Удалить и закрыть зазор",+ "shortcuts.selectAll": "Выделить всё",+ "shortcuts.splitTool": "Инструмент разрезания",+ "shortcuts.stepBack": "Назад на кадр",+ "shortcuts.stepForward": "Вперёд на кадр",+ "shortcuts.unboundNow": "Теперь у «{0}» нет клавиши","speech.aboutInCharacters": "Около {0}:{1} голосом {2} · {3} символов","speech.american": "Американский","speech.anyVoiceRecording": "Любой голос из записи",@@ -676,18 +691,18 @@"tray.generateCaptions": "Создать субтитры","tray.hideMeters": "Скрыть индикаторы уровня","tray.magneticTimelineDeletingTrimming": "Магнитный таймлайн: удаление и подрезка закрывают пробел",- "tray.panTool": "Инструмент «Рука» (H)",+ "tray.panTool": "Инструмент «Рука» ({0})","tray.playerFollowsResizePlayhead": "Плеер следует за подрезкой: курсор движется вместе с краем, который вы подрезаете","tray.previewAxisOptions": "Параметры оси предпросмотра","tray.recordVoiceover": "Записать закадровый голос","tray.redo": "Повторить ({0})","tray.showMeters": "Показать индикаторы уровня: насколько громко звучит таймлайн","tray.splitAtPlayhead": "Разрезать по курсору ({0})",- "tray.splitTool": "Инструмент разрезания (B): щелчок по клипу режет его в этом месте",+ "tray.splitTool": "Инструмент разрезания ({0}): щелчок по клипу режет его в этом месте","tray.stopRecording": "Остановить запись","tray.textToSpeech": "Озвучить текст",- "tray.turnOffPreviewAxis": "Выключить ось предпросмотра (S)",- "tray.turnOnPreviewAxis": "Включить ось предпросмотра (S)",+ "tray.turnOffPreviewAxis": "Выключить ось предпросмотра ({0})",+ "tray.turnOnPreviewAxis": "Включить ось предпросмотра ({0})","tray.undo": "Отменить ({0})","tray.zoomToFit": "Вместить","voiceover.added": "Закадровый голос добавлен на таймлайн",diff --git a/src/crates/concat/locales/th.json b/src/crates/concat/locales/th.jsonindex ea93a6ff..b6457ed9 100644--- a/src/crates/concat/locales/th.json+++ b/src/crates/concat/locales/th.json@@ -676,18 +676,18 @@"tray.generateCaptions": "สร้างคำบรรยาย","tray.hideMeters": "ซ่อนมิเตอร์ระดับเสียง","tray.magneticTimelineDeletingTrimming": "ไทม์ไลน์แม่เหล็ก: การลบและการทริมจะปิดช่องว่าง",- "tray.panTool": "เครื่องมือเลื่อนมุมมอง (H)",+ "tray.panTool": "เครื่องมือเลื่อนมุมมอง ({0})","tray.playerFollowsResizePlayhead": "เครื่องเล่นตามการปรับขนาด: หัวเล่นจะเลื่อนตามขอบที่คุณทริม","tray.previewAxisOptions": "ตัวเลือกแกนแสดงตัวอย่าง","tray.recordVoiceover": "บันทึกเสียงพากย์","tray.redo": "ทำซ้ำ ({0})","tray.showMeters": "แสดงมิเตอร์ระดับเสียง: ไทม์ไลน์เล่นดังแค่ไหน","tray.splitAtPlayhead": "แยกที่หัวเล่น ({0})",- "tray.splitTool": "เครื่องมือแยก (B): คลิกที่คลิปเพื่อตัดตรงนั้น",+ "tray.splitTool": "เครื่องมือแยก ({0}): คลิกที่คลิปเพื่อตัดตรงนั้น","tray.stopRecording": "หยุดบันทึก","tray.textToSpeech": "แปลงข้อความเป็นเสียงพูด",- "tray.turnOffPreviewAxis": "ปิดแกนแสดงตัวอย่าง (S)",- "tray.turnOnPreviewAxis": "เปิดแกนแสดงตัวอย่าง (S)",+ "tray.turnOffPreviewAxis": "ปิดแกนแสดงตัวอย่าง ({0})",+ "tray.turnOnPreviewAxis": "เปิดแกนแสดงตัวอย่าง ({0})","tray.undo": "เลิกทำ ({0})","tray.zoomToFit": "ซูมให้พอดี","voiceover.added": "เพิ่มเสียงพากย์ลงไทม์ไลน์แล้ว",diff --git a/src/crates/concat/locales/tr.json b/src/crates/concat/locales/tr.jsonindex b8266408..5eba9232 100644--- a/src/crates/concat/locales/tr.json+++ b/src/crates/concat/locales/tr.json@@ -424,6 +424,7 @@"settings.scaleSystem": "System","settings.scriptsAndApps": "Betikler ve uygulamalar","settings.servesConcatApiWhile": "Pencere açıkken Concat API'sini sunar; böylece bir betik ya da başka bir program kendi projelerini oluşturabilir, düzenleyebilir ve dışa aktarabilir. Bağlanan her şey sizin gibi dosya okuyup yazabilir.",+ "settings.shortcuts": "Kısayollar","settings.showTheLog": "Günlüğü göster","settings.showTheToken": "Belirteci göster","settings.sky": "Sky",@@ -442,6 +443,19 @@"settings.voices": "Sesler","settings.whatConnectionMustPresent": "Bir bağlantının ilk çağrısından önce sunması gereken şey. Boş bırakılırsa sunucu her başlatıldığında bir tane uydurur ve burada gösterir.","settings.whereEachModelCame": "Her modelin geldiği yer",+ "shortcuts.cutLeft": "Oynatma imlecinin solundan kes",+ "shortcuts.cutRight": "Oynatma imlecinin sağından kes",+ "shortcuts.hint": "Bir satıra tıklayın, sonra yanıt vermesi gereken tuşlara basın. Esc iptal eder; başka bir eylemin tuttuğu kombinasyon buraya taşınır ve o eylem, kendi Sıfırlaması bir tuş geri getirene kadar tuşsuz kalır. Bazı kombinasyonlar pencereye aittir ve bağlanamaz.",+ "shortcuts.press": "Bir tuşa basın…",+ "shortcuts.previewAxis": "Önizleme ekseni",+ "shortcuts.reserved": "Bu kombinasyon pencereye ait",+ "shortcuts.resetAll": "Tümünü sıfırla",+ "shortcuts.rippleDelete": "Sil ve boşluğu kapat",+ "shortcuts.selectAll": "Tümünü seç",+ "shortcuts.splitTool": "Kesme aracı",+ "shortcuts.stepBack": "Bir kare geri",+ "shortcuts.stepForward": "Bir kare ileri",+ "shortcuts.unboundNow": "{0} artık tuşsuz","speech.aboutInCharacters": "Yaklaşık {0}:{1}, {2} · {3} karakter","speech.american": "Amerikan","speech.anyVoiceRecording": "Bir kayıttan herhangi bir ses",@@ -676,18 +690,17 @@"tray.generateCaptions": "Altyazı oluştur","tray.hideMeters": "Seviye göstergelerini gizle","tray.magneticTimelineDeletingTrimming": "Manyetik zaman çizelgesi: silme ve kırpma boşluğu kapatır",- "tray.panTool": "Pan tool (H)","tray.playerFollowsResizePlayhead": "Oynatıcı kırpmayı izler: oynatma kafası kırptığınız kenarla birlikte hareket eder","tray.previewAxisOptions": "Önizleme ekseni seçenekleri","tray.recordVoiceover": "Seslendirme kaydet","tray.redo": "Yinele ({0})","tray.showMeters": "Seviye göstergelerini göster: zaman çizelgesinin ne kadar yüksek çaldığı","tray.splitAtPlayhead": "Playhead konumunda böl ({0})",- "tray.splitTool": "Kesme aracı (B): bir klibe tıklayınca orada keser",+ "tray.splitTool": "Kesme aracı ({0}): bir klibe tıklayınca orada keser","tray.stopRecording": "Kaydı durdur","tray.textToSpeech": "Metinden konuşmaya",- "tray.turnOffPreviewAxis": "Önizleme eksenini kapat (S)",- "tray.turnOnPreviewAxis": "Önizleme eksenini aç (S)",+ "tray.turnOffPreviewAxis": "Önizleme eksenini kapat ({0})",+ "tray.turnOnPreviewAxis": "Önizleme eksenini aç ({0})","tray.undo": "Geri al ({0})","tray.zoomToFit": "Sığdır","voiceover.added": "Seslendirme zaman çizelgesine eklendi",diff --git a/src/crates/concat/locales/uk.json b/src/crates/concat/locales/uk.jsonindex 673f101d..943fd595 100644--- a/src/crates/concat/locales/uk.json+++ b/src/crates/concat/locales/uk.json@@ -676,18 +676,18 @@"tray.generateCaptions": "Створити субтитри","tray.hideMeters": "Сховати індикатори рівня","tray.magneticTimelineDeletingTrimming": "Магнітна часова шкала: видалення й обрізання закривають проміжок",- "tray.panTool": "Інструмент «Рука» (H)",+ "tray.panTool": "Інструмент «Рука» ({0})","tray.playerFollowsResizePlayhead": "Плеєр слідує за обрізанням: курсор рухається разом із краєм, який ви обрізаєте","tray.previewAxisOptions": "Параметри осі перегляду","tray.recordVoiceover": "Записати озвучення","tray.redo": "Повторити ({0})","tray.showMeters": "Показати індикатори рівня: наскільки гучно звучить таймлайн","tray.splitAtPlayhead": "Розрізати на курсорі ({0})",- "tray.splitTool": "Інструмент розрізання (B): клацніть кліп, щоб розрізати його в цьому місці",+ "tray.splitTool": "Інструмент розрізання ({0}): клацніть кліп, щоб розрізати його в цьому місці","tray.stopRecording": "Зупинити запис","tray.textToSpeech": "Синтез мовлення",- "tray.turnOffPreviewAxis": "Вимкнути вісь перегляду (S)",- "tray.turnOnPreviewAxis": "Увімкнути вісь перегляду (S)",+ "tray.turnOffPreviewAxis": "Вимкнути вісь перегляду ({0})",+ "tray.turnOnPreviewAxis": "Увімкнути вісь перегляду ({0})","tray.undo": "Скасувати ({0})","tray.zoomToFit": "Вмістити все","voiceover.added": "Озвучення додано на часову шкалу",diff --git a/src/crates/concat/locales/ur.json b/src/crates/concat/locales/ur.jsonindex 8bad057f..88aa44f8 100644--- a/src/crates/concat/locales/ur.json+++ b/src/crates/concat/locales/ur.json@@ -676,18 +676,18 @@"tray.generateCaptions": "کیپشن بنائیں","tray.hideMeters": "لیول میٹر چھپائیں","tray.magneticTimelineDeletingTrimming": "مقناطیسی ٹائم لائن: حذف اور ٹرم خالی جگہ بند کرتے ہیں",- "tray.panTool": "پین ٹول (H)",+ "tray.panTool": "پین ٹول ({0})","tray.playerFollowsResizePlayhead": "پلیئر سائز بدلنے کے ساتھ چلتا ہے: پلے ہیڈ اس کنارے کے ساتھ رہتا ہے جسے آپ ٹرم کریں","tray.previewAxisOptions": "پیش منظر محور کے اختیارات","tray.recordVoiceover": "وائس اوور ریکارڈ کریں","tray.redo": "دوبارہ کریں ({0})","tray.showMeters": "لیول میٹر دکھائیں: ٹائم لائن کتنی اونچی آواز میں چل رہی ہے","tray.splitAtPlayhead": "پلے ہیڈ پر تقسیم کریں ({0})",- "tray.splitTool": "تقسیم ٹول (B): کسی کلپ پر کلک کر کے اسے وہاں سے کاٹیں",+ "tray.splitTool": "تقسیم ٹول ({0}): کسی کلپ پر کلک کر کے اسے وہاں سے کاٹیں","tray.stopRecording": "ریکارڈنگ روکیں","tray.textToSpeech": "ٹیکسٹ ٹو اسپیچ",- "tray.turnOffPreviewAxis": "پیش منظر محور بند کریں (S)",- "tray.turnOnPreviewAxis": "پیش منظر محور آن کریں (S)",+ "tray.turnOffPreviewAxis": "پیش منظر محور بند کریں ({0})",+ "tray.turnOnPreviewAxis": "پیش منظر محور آن کریں ({0})","tray.undo": "واپس لیں ({0})","tray.zoomToFit": "فٹ ہونے تک زوم","voiceover.added": "وائس اوور ٹائم لائن میں شامل ہو گیا",diff --git a/src/crates/concat/locales/vi.json b/src/crates/concat/locales/vi.jsonindex 4a3eba53..23884ab0 100644--- a/src/crates/concat/locales/vi.json+++ b/src/crates/concat/locales/vi.json@@ -676,18 +676,18 @@"tray.generateCaptions": "Tạo phụ đề","tray.hideMeters": "Ẩn đồng hồ mức âm","tray.magneticTimelineDeletingTrimming": "Dòng thời gian từ tính: xóa và cắt sẽ đóng khoảng trống",- "tray.panTool": "Công cụ di chuyển khung nhìn (H)",+ "tray.panTool": "Công cụ di chuyển khung nhìn ({0})","tray.playerFollowsResizePlayhead": "Đầu phát đi theo thao tác đổi kích thước: đầu phát bám theo mép đang cắt","tray.previewAxisOptions": "Tùy chọn trục xem trước","tray.recordVoiceover": "Thu lời thuyết minh","tray.redo": "Làm lại ({0})","tray.showMeters": "Hiện đồng hồ mức âm: dòng thời gian phát to đến mức nào","tray.splitAtPlayhead": "Tách tại đầu phát ({0})",- "tray.splitTool": "Công cụ tách (B): nhấp vào clip để cắt tại vị trí đó",+ "tray.splitTool": "Công cụ tách ({0}): nhấp vào clip để cắt tại vị trí đó","tray.stopRecording": "Dừng ghi âm","tray.textToSpeech": "Chuyển văn bản thành giọng nói",- "tray.turnOffPreviewAxis": "Tắt trục xem trước (S)",- "tray.turnOnPreviewAxis": "Bật trục xem trước (S)",+ "tray.turnOffPreviewAxis": "Tắt trục xem trước ({0})",+ "tray.turnOnPreviewAxis": "Bật trục xem trước ({0})","tray.undo": "Hoàn tác ({0})","tray.zoomToFit": "Thu phóng vừa khung","voiceover.added": "Đã thêm lời thuyết minh vào dòng thời gian",diff --git a/src/crates/concat/locales/zh-Hans.json b/src/crates/concat/locales/zh-Hans.jsonindex 7c1fc4ff..b1401e43 100644--- a/src/crates/concat/locales/zh-Hans.json+++ b/src/crates/concat/locales/zh-Hans.json@@ -424,6 +424,7 @@"settings.scaleSystem": "System","settings.scriptsAndApps": "脚本和应用","settings.servesConcatApiWhile": "窗口打开期间提供 Concat API,让脚本或其他程序可以自行创建、编辑和导出项目。任何连接进来的程序都能像你一样读写文件。",+ "settings.shortcuts": "快捷键","settings.showTheLog": "显示日志","settings.showTheToken": "显示令牌","settings.sky": "天空",@@ -442,6 +443,20 @@"settings.voices": "语音","settings.whatConnectionMustPresent": "连接在首次调用前必须提供的凭据。留空时,服务器每次启动都会自动生成一个并显示在此处。","settings.whereEachModelCame": "各模型的来源",+ "shortcuts.cutLeft": "剪切播放头左侧",+ "shortcuts.cutRight": "剪切播放头右侧",+ "shortcuts.hint": "点击一行,然后按下它应响应的按键。Esc 取消;其他操作占用的组合键会移到这里,该操作将没有按键,直到它自己的重置把按键放回。有些组合键属于窗口,无法绑定。",+ "shortcuts.pan": "平移工具",+ "shortcuts.press": "按下按键…",+ "shortcuts.previewAxis": "预览坐标轴",+ "shortcuts.reserved": "该组合键属于窗口",+ "shortcuts.resetAll": "全部重置",+ "shortcuts.rippleDelete": "删除并闭合间隙",+ "shortcuts.selectAll": "全选",+ "shortcuts.splitTool": "分割工具",+ "shortcuts.stepBack": "后退一帧",+ "shortcuts.stepForward": "前进一帧",+ "shortcuts.unboundNow": "{0}现在没有按键","speech.aboutInCharacters": "约 {0}:{1}({2})· {3} 个字符","speech.american": "美式","speech.anyVoiceRecording": "任意声音,源自录音",@@ -676,18 +691,18 @@"tray.generateCaptions": "生成字幕","tray.hideMeters": "隐藏电平表","tray.magneticTimelineDeletingTrimming": "磁性时间线:删除和修剪时自动合拢间隙",- "tray.panTool": "平移工具 (H)",+ "tray.panTool": "平移工具 ({0})","tray.playerFollowsResizePlayhead": "播放器跟随修剪:播放头随你修剪的边缘移动","tray.previewAxisOptions": "预览坐标轴选项","tray.recordVoiceover": "录制旁白","tray.redo": "重做 ({0})","tray.showMeters": "显示电平表:时间线播放的响度","tray.splitAtPlayhead": "在播放头处分割({0})",- "tray.splitTool": "分割工具(B):点击片段即在该处切开",+ "tray.splitTool": "分割工具({0}):点击片段即在该处切开","tray.stopRecording": "停止录制","tray.textToSpeech": "文字转语音",- "tray.turnOffPreviewAxis": "关闭预览坐标轴 (S)",- "tray.turnOnPreviewAxis": "打开预览坐标轴 (S)",+ "tray.turnOffPreviewAxis": "关闭预览坐标轴 ({0})",+ "tray.turnOnPreviewAxis": "打开预览坐标轴 ({0})","tray.undo": "撤销 ({0})","tray.zoomToFit": "缩放至适合","voiceover.added": "旁白已添加到时间线",diff --git a/src/crates/concat/locales/zh-TW.json b/src/crates/concat/locales/zh-TW.jsonindex 281cc744..897dd89d 100644--- a/src/crates/concat/locales/zh-TW.json+++ b/src/crates/concat/locales/zh-TW.json@@ -424,6 +424,7 @@"settings.scaleSystem": "System","settings.scriptsAndApps": "指令碼與應用程式","settings.servesConcatApiWhile": "視窗開啟期間提供 Concat API,讓指令碼或其他程式可以自行建立、編輯和匯出專案。任何連線進來的程式都能像你一樣讀寫檔案。",+ "settings.shortcuts": "快速鍵","settings.showTheLog": "顯示記錄","settings.showTheToken": "顯示權杖","settings.sky": "天空",@@ -442,6 +443,20 @@"settings.voices": "語音","settings.whatConnectionMustPresent": "連線在首次呼叫前必須提供的憑證。留空時,伺服器每次啟動都會自動產生一個並顯示在此處。","settings.whereEachModelCame": "各模型的來源",+ "shortcuts.cutLeft": "剪切播放磁頭左側",+ "shortcuts.cutRight": "剪切播放磁頭右側",+ "shortcuts.hint": "點擊一列,然後按下它應回應的按鍵。Esc 取消;其他操作佔用的組合鍵會移到這裡,該操作將沒有按鍵,直到它自己的重設把按鍵放回。有些組合鍵屬於視窗,無法綁定。",+ "shortcuts.pan": "平移工具",+ "shortcuts.press": "按下按鍵…",+ "shortcuts.previewAxis": "預覽座標軸",+ "shortcuts.reserved": "該組合鍵屬於視窗",+ "shortcuts.resetAll": "全部重設",+ "shortcuts.rippleDelete": "刪除並閉合間隙",+ "shortcuts.selectAll": "全選",+ "shortcuts.splitTool": "分割工具",+ "shortcuts.stepBack": "後退一個影格",+ "shortcuts.stepForward": "前進一個影格",+ "shortcuts.unboundNow": "{0}目前沒有按鍵","speech.aboutInCharacters": "約 {0}:{1}({2})· {3} 個字元","speech.american": "美式","speech.anyVoiceRecording": "任意聲音,源自錄音",@@ -676,18 +691,18 @@"tray.generateCaptions": "產生字幕","tray.hideMeters": "隱藏音量表","tray.magneticTimelineDeletingTrimming": "磁性時間軸:刪除和修剪時自動合攏間隙",- "tray.panTool": "平移工具 (H)",+ "tray.panTool": "平移工具 ({0})","tray.playerFollowsResizePlayhead": "播放器跟隨修剪:播放磁頭隨你修剪的邊緣移動","tray.previewAxisOptions": "預覽座標軸選項","tray.recordVoiceover": "錄製旁白","tray.redo": "重做 ({0})","tray.showMeters": "顯示音量表:時間軸播放的響度","tray.splitAtPlayhead": "在播放磁頭處分割({0})",- "tray.splitTool": "分割工具(B):點擊片段即在該處切開",+ "tray.splitTool": "分割工具({0}):點擊片段即在該處切開","tray.stopRecording": "停止錄製","tray.textToSpeech": "文字轉語音",- "tray.turnOffPreviewAxis": "關閉預覽座標軸 (S)",- "tray.turnOnPreviewAxis": "打開預覽座標軸 (S)",+ "tray.turnOffPreviewAxis": "關閉預覽座標軸 ({0})",+ "tray.turnOnPreviewAxis": "打開預覽座標軸 ({0})","tray.undo": "復原 ({0})","tray.zoomToFit": "縮放至符合大小","voiceover.added": "旁白已加入時間軸",diff --git a/src/crates/concat/src/keymap.rs b/src/crates/concat/src/keymap.rsnew file mode 100644index 00000000..38dbfc29--- /dev/null+++ b/src/crates/concat/src/keymap.rs@@ -0,0 +1,768 @@+// SPDX-License-Identifier: AGPL-3.0-or-later+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors++//! The keyboard: which chord does what, as one table Rust owns.+//!+//! The window used to spell this out twice — as `KeyBinding` blocks and+//! as a chain of `if`s in app.slint — which meant the shortcut and the+//! menu row naming it could come apart, and neither could be moved+//! without editing the .slint. Now the table is here: the defaults, the+//! resolution of a pressed chord to an action, and the overrides in+//! [`Preferences::keybinds`] that Settings › Shortcuts writes. Menus and+//! the tray ask this module how to write each label, so a rebind moves+//! the key and the words for it together.+//!+//! A chord is lower-case tokens joined by `+`, the modifiers first in a+//! fixed order and then the key: "ctrl+shift+z", "q", "space",+//! "shift+delete", "ctrl+,". "ctrl" is the platform's own primary+//! modifier — Slint's backend stands ⌘ in for Control on a Mac before+//! the event is seen, and [`crate::platform::keys`] writes it back the+//! way that platform does.+//!+//! Some keys never enter the table: the menu bar's F10 and Alt+F/E/V,+//! and the window's Ctrl+O/W/Q stay `KeyBinding`s in app.slint, ahead+//! of everything this module sees. [`reserved`] names their chords so a+//! capture in Settings is turned away rather than shadowing them.++use crate::i18n;+use crate::prefs::Preferences;++/// One action the keyboard reaches, and the chords it ships on.+///+/// The action's *name* is [`name`], not a field: the string inventory+/// that keeps en.json honest reads `t("…")` calls, and a key held as+/// data here would be dropped from it as never asked for.+pub struct Action {+ /// The verb the dispatch tables speak: "undo", "split-tool", ...+ pub id: &'static str,+ /// The chords it ships on. The first is the one the row shows; the+ /// rest are aliases one press should keep working through —+ /// Backspace deletes as Delete does, and the `+` key zooms as `=`+ /// does. An override replaces the whole list: whoever pressed one+ /// chord for an action asked for that chord, not for the aliases+ /// underneath it.+ pub defaults: &'static [&'static str],+}++/// Every action the shortcuts page lists, in the order it lists them.+pub const ACTIONS: &[Action] = &[+ // The verbs a project has from the first moment.+ Action {+ id: "save",+ defaults: &["ctrl+s"],+ },+ Action {+ id: "import",+ defaults: &["ctrl+i"],+ },+ Action {+ id: "export",+ defaults: &["ctrl+e"],+ },+ Action {+ id: "settings",+ defaults: &["ctrl+,"],+ },+ // Editing.+ Action {+ id: "undo",+ defaults: &["ctrl+z"],+ },+ Action {+ id: "redo",+ // Windows and Linux redo on Ctrl+Y as well; see [`resolve`].+ defaults: &["ctrl+shift+z"],+ },+ Action {+ id: "select-all",+ defaults: &["ctrl+a"],+ },+ Action {+ id: "copy",+ defaults: &["ctrl+c"],+ },+ Action {+ id: "paste",+ defaults: &["ctrl+v"],+ },+ Action {+ id: "duplicate",+ defaults: &["ctrl+d"],+ },+ Action {+ id: "split",+ defaults: &["ctrl+b"],+ },+ Action {+ id: "delete",+ defaults: &["delete", "backspace"],+ },+ // Shift closes the gap the deletion leaves — the ripple delete every+ // other editor has, on the key they all use for it.+ // https://github.com/jub0t/Concat/issues/106+ Action {+ id: "ripple-delete",+ defaults: &["shift+delete", "shift+backspace"],+ },+ Action {+ id: "freeze",+ defaults: &["f"],+ },+ // The big editors' trim keys: the selected clip is cut at the+ // playhead, Q dropping its left, E its right.+ Action {+ id: "cut-left",+ defaults: &["q"],+ },+ Action {+ id: "cut-right",+ defaults: &["e"],+ },+ Action {+ id: "split-tool",+ defaults: &["b"],+ },+ Action {+ id: "mute",+ defaults: &["m"],+ },+ // The hand: the pan tool, on and off, the key every editor's canvas+ // grabs with.+ Action {+ id: "pan",+ defaults: &["h"],+ },+ // The view.+ Action {+ id: "snap",+ defaults: &["n"],+ },+ Action {+ id: "preview-axis",+ defaults: &["s"],+ },+ Action {+ id: "zoom-in",+ defaults: &["ctrl+=", "ctrl+plus"],+ },+ Action {+ id: "zoom-out",+ defaults: &["ctrl+-"],+ },+ // The playhead.+ Action {+ id: "play",+ defaults: &["space"],+ },+ Action {+ id: "start",+ defaults: &["home"],+ },+ Action {+ id: "end",+ defaults: &["end"],+ },+ Action {+ id: "step-back",+ defaults: &["left"],+ },+ Action {+ id: "step-forward",+ defaults: &["right"],+ },+];++/// The action a row and a dispatch speak, by its id.+pub fn action(id: &str) -> Option<&'static Action> {+ ACTIONS.iter().find(|action| action.id == id)+}++/// The action's name, in the language the window speaks now: what+/// Settings › Shortcuts puts on the row, and what the toast naming a+/// displaced action calls it. Each key is spelled in a literal call+/// because that is what `scripts/locales.py` reads when it keeps+/// en.json the inventory of the strings the source asks for — a key+/// this function looked up as data would be dropped as never asked.+/// An id no row speaks is a row with no name, which draws nothing.+pub fn name(id: &str) -> String {+ match id {+ "save" => i18n::t("studio.save"),+ "import" => i18n::t("studio.importMedia"),+ "export" => i18n::t("studio.export"),+ "settings" => i18n::t("common.settings"),+ "undo" => i18n::t("studio.undo"),+ "redo" => i18n::t("studio.redo"),+ "select-all" => i18n::t("shortcuts.selectAll"),+ "copy" => i18n::t("common.copy"),+ "paste" => i18n::t("studio.paste"),+ "duplicate" => i18n::t("studio.duplicate"),+ "split" => i18n::t("studio.splitAtPlayhead"),+ "delete" => i18n::t("common.delete"),+ "ripple-delete" => i18n::t("shortcuts.rippleDelete"),+ "freeze" => i18n::t("timelinePane.freeze"),+ "cut-left" => i18n::t("shortcuts.cutLeft"),+ "cut-right" => i18n::t("shortcuts.cutRight"),+ "split-tool" => i18n::t("shortcuts.splitTool"),+ "mute" => i18n::t("studio.mute"),+ "pan" => i18n::t("shortcuts.pan"),+ "snap" => i18n::t("common.snapToEdges"),+ "preview-axis" => i18n::t("shortcuts.previewAxis"),+ "zoom-in" => i18n::t("common.zoomIn"),+ "zoom-out" => i18n::t("common.zoomOut"),+ "play" => i18n::t("previewPane.play"),+ "start" => i18n::t("common.goToStart"),+ "end" => i18n::t("common.goToEnd"),+ "step-back" => i18n::t("shortcuts.stepBack"),+ "step-forward" => i18n::t("shortcuts.stepForward"),+ _ => String::new(),+ }+}++/// The chord `id` is on now: what was bound over the default, the+/// default when nothing was, and `None` when a rebind took the action's+/// key away and left it holding none.+pub fn bound<'a>(prefs: &'a Preferences, id: &str) -> Option<&'a str> {+ let action = action(id)?;+ match prefs.keybinds.get(id) {+ Some(custom) if custom.is_empty() => None,+ Some(custom) => Some(custom.as_str()),+ None => action.defaults.first().copied(),+ }+}++/// The action's chord as this platform's menus write it — "" when the+/// action is unbound, so a menu row simply omits what there is no key+/// for.+pub fn label(prefs: &Preferences, id: &str) -> String {+ bound(prefs, id).map(display).unwrap_or_default()+}++/// Whether `chord` is what `action` currently answers to.+fn answers(prefs: &Preferences, action: &Action, chord: &str) -> bool {+ match prefs.keybinds.get(action.id) {+ Some(custom) => !custom.is_empty() && custom == chord,+ None => action.defaults.contains(&chord),+ }+}++/// Which action a pressed chord takes, overrides before defaults.+///+/// Two things resolve outside the rows: Shift steps ten frames with+/// whatever step key is bound — the variant is a rule about Shift, not+/// a binding of its own — and Ctrl+Y redoes on Windows and Linux while+/// redo still ships where it does, the way the window's old `Ctrl+Y`+/// binding did.+pub fn resolve(prefs: &Preferences, chord: &str) -> Option<&'static str> {+ for action in ACTIONS {+ if answers(prefs, action, chord) {+ return Some(action.id);+ }+ }+ if let Some(base) = chord.strip_prefix("shift+") {+ let held = ACTIONS.iter().find(|action| answers(prefs, action, base));+ match held.map(|action| action.id) {+ Some("step-back") => return Some("step-back-10"),+ Some("step-forward") => return Some("step-forward-10"),+ _ => {}+ }+ }+ if !cfg!(target_os = "macos") && chord == "ctrl+y" && !prefs.keybinds.contains_key("redo") {+ return Some("redo");+ }+ None+}++/// Binds `chord` to `id`, taking it from whoever held it: a chord is+/// one action's, so the loser is left with none — its row reads "—" and+/// its Reset puts it back. Binding an action to one of its own defaults+/// clears the override rather than recording it, so the row reads as+/// shipped until something moves it. Returns the action that lost the+/// chord, if any.+pub fn bind(prefs: &mut Preferences, id: &str, chord: &str) -> Option<&'static str> {+ let action = action(id)?;+ let mut lost = None;+ for other in ACTIONS {+ if other.id != id && answers(prefs, other, chord) {+ prefs.keybinds.insert(other.id.to_owned(), String::new());+ lost = Some(other.id);+ }+ }+ if action.defaults.contains(&chord) {+ prefs.keybinds.remove(id);+ } else {+ prefs.keybinds.insert(id.to_owned(), chord.to_owned());+ }+ lost+}++/// Forgets the override on `id`, taking its shipped chord back from+/// whoever holds it now. Returns the action that lost it, if any.+pub fn reset(prefs: &mut Preferences, id: &str) -> Option<&'static str> {+ let action = action(id)?;+ prefs.keybinds.remove(id);+ let default = action.defaults.first()?;+ let mut lost = None;+ for other in ACTIONS {+ if other.id != id && answers(prefs, other, default) {+ prefs.keybinds.insert(other.id.to_owned(), String::new());+ lost = Some(other.id);+ }+ }+ lost+}++/// Forgets every override: the table as it ships.+pub fn reset_all(prefs: &mut Preferences) {+ prefs.keybinds.clear();+}++/// The chords that are not the table's to give: the menu bar's own keys+/// and the window's, which stay `KeyBinding`s in app.slint ahead of+/// anything this module sees. A capture that asks for one is turned+/// away, because a binding that fired first would make the new+/// shortcut a lie.+pub fn reserved(chord: &str) -> bool {+ // Ctrl+O and Ctrl+W are the window's everywhere; the rest only hold+ // where their bindings are enabled — a Mac's menus and quit are the+ // system's own.+ let apple = cfg!(any(target_os = "macos", target_os = "ios"));+ matches!(chord, "ctrl+o" | "ctrl+w")+ || (!apple && matches!(chord, "ctrl+q" | "f10" | "alt+f" | "alt+e" | "alt+v"))+}++/// The chord the key event makes, or `None` when the press is no chord:+/// a modifier waiting for its key, the Super key or a Mac's physical+/// Control — Slint hands those over as Meta, and nobody binds them —+/// text that is not one character, or a key this table does not name.+pub fn chord(text: &str, shift: bool, alt: bool, control: bool, meta: bool) -> Option<String> {+ if meta {+ return None;+ }+ let mut chars = text.chars();+ let key = chars.next()?;+ if chars.next().is_some() {+ return None;+ }+ if is_modifier(key) {+ return None;+ }+ let name = if let Some(named) = named(key) {+ named+ } else if key == '+' {+ // `+` is Shift on most layouts, and the press meant the key+ // whether Shift was held or not — the way `Control + Plus`+ // matched either.+ "plus".to_owned()+ } else if key.is_control() {+ // Control characters the platform sends as text: not keys a+ // person binds.+ return None;+ } else {+ // Lower-cased, so Caps Lock leaves the letters alone.+ key.to_lowercase().to_string()+ };+ let mut chord = String::new();+ if control {+ chord.push_str("ctrl+");+ }+ if alt {+ chord.push_str("alt+");+ }+ if shift && name != "plus" {+ chord.push_str("shift+");+ }+ chord.push_str(&name);+ Some(chord)+}++/// Whether the character is a modifier holding out for the key it+/// modifies: those arrive as key events of their own before it.+fn is_modifier(key: char) -> bool {+ use slint::platform::Key;+ [+ Key::Shift,+ Key::ShiftR,+ Key::Control,+ Key::ControlR,+ Key::Alt,+ Key::AltGr,+ Key::Meta,+ Key::MetaR,+ ]+ .iter()+ .any(|modifier| char::from(*modifier) == key)+}++/// The chord's name for a key that is not a letter or a mark: Slint's+/// own special keys as the lower-cased word the table spells them with.+fn named(key: char) -> Option<String> {+ use slint::platform::Key;+ let name = match key {+ k if k == char::from(Key::Space) => "space",+ k if k == char::from(Key::Delete) => "delete",+ k if k == char::from(Key::Backspace) => "backspace",+ k if k == char::from(Key::Home) => "home",+ k if k == char::from(Key::End) => "end",+ k if k == char::from(Key::UpArrow) => "up",+ k if k == char::from(Key::DownArrow) => "down",+ k if k == char::from(Key::LeftArrow) => "left",+ k if k == char::from(Key::RightArrow) => "right",+ k if k == char::from(Key::Return) => "return",+ k if k == char::from(Key::Escape) => "escape",+ k if k == char::from(Key::Tab) => "tab",+ k if k == char::from(Key::F1) => "f1",+ k if k == char::from(Key::F2) => "f2",+ k if k == char::from(Key::F3) => "f3",+ k if k == char::from(Key::F4) => "f4",+ k if k == char::from(Key::F5) => "f5",+ k if k == char::from(Key::F6) => "f6",+ k if k == char::from(Key::F7) => "f7",+ k if k == char::from(Key::F8) => "f8",+ k if k == char::from(Key::F9) => "f9",+ k if k == char::from(Key::F10) => "f10",+ k if k == char::from(Key::F11) => "f11",+ k if k == char::from(Key::F12) => "f12",+ _ => return None,+ };+ Some(name.to_owned())+}++/// The chord as this platform writes it: "Ctrl+Shift+Z" where that is+/// how it is written, ⇧⌘Z where it is not — through the same+/// [`crate::platform::keys`] the menus use, so a row and a menu never+/// spell one shortcut two ways.+pub fn display(chord: &str) -> String {+ let tokens: Vec<&str> = chord.split('+').filter(|token| !token.is_empty()).collect();+ let Some((key, modifiers)) = tokens.split_last() else {+ return String::new();+ };+ // The two delete keys: ⌫ and ⇧⌫ on a Mac, Del and Shift+Del+ // elsewhere, which is the name each platform's own menus use.+ if *key == "delete" && modifiers.iter().all(|modifier| *modifier == "shift") {+ return crate::platform::delete_key(modifiers.contains(&"shift"));+ }+ let mut parts: Vec<String> = modifiers+ .iter()+ .map(|modifier| match *modifier {+ "ctrl" => "Control".to_owned(),+ "alt" => "Alt".to_owned(),+ "shift" => "Shift".to_owned(),+ "meta" => "Meta".to_owned(),+ // A hand-edited settings.json can say anything; show it.+ other => other.to_owned(),+ })+ .collect();+ parts.push(key_part(key));+ let parts: Vec<&str> = parts.iter().map(String::as_str).collect();+ let rendered = crate::platform::keys(&parts);+ if rendered.is_empty() {+ // `from_parts` took no part of it: spell it plainly rather than+ // draw an empty chip in the row.+ parts.join("+")+ } else {+ rendered+ }+}++/// The key's spelling in `@keys` syntax. Letters and marks are+/// themselves — the parser takes a single lower-cased character as a+/// literal — but a key the platform gives a name wants that name, and+/// one whose name is its own character wants the character.+fn key_part(key: &str) -> String {+ if let Some(number) = key.strip_prefix('f')+ && let Ok(number) = number.parse::<u8>()+ && (1..=12).contains(&number)+ {+ return format!("F{number}");+ }+ match key {+ "space" => "Space",+ "delete" => "Delete",+ "backspace" => "Backspace",+ "home" => "Home",+ "end" => "End",+ "up" => "UpArrow",+ "down" => "DownArrow",+ "left" => "LeftArrow",+ "right" => "RightArrow",+ "return" => "Return",+ "escape" => "Escape",+ "tab" => "Tab",+ "plus" => "+",+ other => other,+ }+ .to_owned()+}++#[cfg(test)]+mod tests {+ use std::collections::BTreeMap;++ use super::*;++ /// A pair of keys as the window would hand them over: the text and+ /// the modifiers as Slint reports them after the platform's own+ /// remapping of ⌘ and Control.+ fn press(text: &str, shift: bool, control: bool) -> Option<String> {+ chord(text, shift, false, control, false)+ }++ #[test]+ fn a_chord_is_built_from_the_text_and_the_modifiers() {+ assert_eq!(press("z", false, true).as_deref(), Some("ctrl+z"));+ assert_eq!(press("Z", true, true).as_deref(), Some("ctrl+shift+z"));+ // Caps Lock presses an upper-case letter with no Shift held:+ // the letters stay themselves.+ assert_eq!(press("Q", false, false).as_deref(), Some("q"));+ assert_eq!(press(",", false, true).as_deref(), Some("ctrl+,"));+ }++ #[test]+ fn the_keys_that_are_not_chords_build_nothing() {+ // The Super key, and a Mac's physical Control — both arrive as+ // Meta — and a modifier holding out for its key.+ assert_eq!(chord("z", false, false, true, true), None);+ assert_eq!(chord("z", true, false, false, true), None);+ assert_eq!(+ chord(+ &char::from(slint::platform::Key::Control).to_string(),+ false,+ false,+ false,+ false+ ),+ None+ );+ assert_eq!(+ chord(+ &char::from(slint::platform::Key::Shift).to_string(),+ true,+ false,+ false,+ false+ ),+ None+ );+ // Text that is not one key.+ assert_eq!(chord("", false, false, false, false), None);+ assert_eq!(chord("ab", false, false, false, false), None);+ }++ #[test]+ fn the_special_keys_name_themselves() {+ assert_eq!(press(" ", false, false).as_deref(), Some("space"));+ assert_eq!(+ press(+ &char::from(slint::platform::Key::Delete).to_string(),+ false,+ false+ )+ .as_deref(),+ Some("delete")+ );+ assert_eq!(+ press(+ &char::from(slint::platform::Key::Delete).to_string(),+ true,+ false+ )+ .as_deref(),+ Some("shift+delete")+ );+ assert_eq!(+ press(+ &char::from(slint::platform::Key::LeftArrow).to_string(),+ true,+ false+ )+ .as_deref(),+ Some("shift+left")+ );+ assert_eq!(+ press(+ &char::from(slint::platform::Key::Home).to_string(),+ false,+ false+ )+ .as_deref(),+ Some("home")+ );+ assert_eq!(+ press(+ &char::from(slint::platform::Key::F10).to_string(),+ false,+ false+ )+ .as_deref(),+ Some("f10")+ );+ }++ #[test]+ fn the_plus_key_zooms_whether_shift_was_held_or_not() {+ assert_eq!(press("+", true, true).as_deref(), Some("ctrl+plus"));+ assert_eq!(press("+", false, true).as_deref(), Some("ctrl+plus"));+ assert_eq!(press("=", false, true).as_deref(), Some("ctrl+="));+ }++ #[test]+ fn the_defaults_resolve_to_their_actions() {+ let prefs = Preferences::default();+ assert_eq!(resolve(&prefs, "q"), Some("cut-left"));+ assert_eq!(resolve(&prefs, "ctrl+shift+z"), Some("redo"));+ assert_eq!(resolve(&prefs, "backspace"), Some("delete"));+ assert_eq!(resolve(&prefs, "shift+delete"), Some("ripple-delete"));+ assert_eq!(resolve(&prefs, "left"), Some("step-back"));+ assert_eq!(resolve(&prefs, "ctrl+plus"), Some("zoom-in"));+ assert_eq!(resolve(&prefs, "ctrl+="), Some("zoom-in"));+ assert_eq!(resolve(&prefs, "ctrl+,"), Some("settings"));+ // Unmapped, so nothing takes it.+ assert_eq!(resolve(&prefs, "ctrl+h"), None);+ assert_eq!(resolve(&prefs, "shift+q"), None);+ }++ #[test]+ fn shift_steps_ten_frames_with_whatever_key_steps() {+ let prefs = Preferences::default();+ assert_eq!(resolve(&prefs, "shift+left"), Some("step-back-10"));+ assert_eq!(resolve(&prefs, "shift+right"), Some("step-forward-10"));+ // A step key rebound: the ten follow it. J was nobody's.+ let mut prefs = prefs;+ assert_eq!(bind(&mut prefs, "step-back", "j"), None);+ assert_eq!(resolve(&prefs, "j"), Some("step-back"));+ assert_eq!(resolve(&prefs, "shift+j"), Some("step-back-10"));+ }++ #[test]+ fn ctrl_y_redoes_where_the_platform_redoes_that_way() {+ let found = resolve(&Preferences::default(), "ctrl+y");+ assert_eq!(+ found,+ if cfg!(target_os = "macos") {+ None+ } else {+ Some("redo")+ }+ );+ // The alias is the default's: rebind redo and it goes with it.+ let mut prefs = Preferences::default();+ prefs.keybinds.insert("redo".into(), "ctrl+r".into());+ assert_eq!(resolve(&prefs, "ctrl+y"), None);+ }++ #[test]+ fn a_rebind_moves_the_chord_and_leaves_the_loser_none() {+ let mut prefs = Preferences::default();+ // Mute ships on M; taking M for the trim key leaves mute none.+ assert_eq!(bind(&mut prefs, "cut-left", "m"), Some("mute"));+ assert_eq!(resolve(&prefs, "m"), Some("cut-left"));+ assert_eq!(bound(&prefs, "mute"), None);+ assert_eq!(resolve(&prefs, "q"), None);+ // The override is what is stored, not the whole table.+ assert_eq!(+ prefs.keybinds,+ [+ ("cut-left".to_owned(), "m".to_owned()),+ ("mute".to_owned(), String::new())+ ]+ .into_iter()+ .collect::<BTreeMap<_, _>>()+ );+ }++ #[test]+ fn binding_an_action_back_to_its_default_clears_the_override() {+ let mut prefs = Preferences::default();+ // `bind` hands back whoever lost the chord, and nobody held+ // Ctrl+Shift+S: None here is "no one to take it from".+ bind(&mut prefs, "save", "ctrl+shift+s");+ assert!(prefs.keybinds.contains_key("save"));+ bind(&mut prefs, "save", "ctrl+s");+ assert!(!prefs.keybinds.contains_key("save"));+ assert_eq!(bound(&prefs, "save"), Some("ctrl+s"));+ }++ #[test]+ fn reset_takes_the_shipped_chord_back() {+ let mut prefs = Preferences::default();+ // The trim key took M from mute, leaving mute none.+ assert_eq!(bind(&mut prefs, "cut-left", "m"), Some("mute"));+ assert_eq!(bound(&prefs, "mute"), None);+ assert_eq!(bound(&prefs, "cut-left"), Some("m"));+ // Mute's own Reset puts M back where it ships, taking it off+ // the trim key — a chord is one action's, and mute is the+ // action it belongs to.+ assert_eq!(reset(&mut prefs, "mute"), Some("cut-left"));+ assert_eq!(bound(&prefs, "mute"), Some("m"));+ assert_eq!(bound(&prefs, "cut-left"), None);+ // The trim key's Reset returns it to Q, which nobody holds, so+ // there is no loser to name.+ assert_eq!(reset(&mut prefs, "cut-left"), None);+ assert_eq!(bound(&prefs, "cut-left"), Some("q"));+ assert_eq!(bound(&prefs, "mute"), Some("m"));+ reset_all(&mut prefs);+ assert!(prefs.keybinds.is_empty());+ }++ #[test]+ fn the_windows_own_chords_are_reserved() {+ assert!(reserved("ctrl+o"));+ assert!(reserved("ctrl+w"));+ assert!(!reserved("ctrl+z"));+ assert!(!reserved("alt+m"));+ if cfg!(not(any(target_os = "macos", target_os = "ios"))) {+ assert!(reserved("f10"));+ assert!(reserved("alt+f"));+ assert!(reserved("ctrl+q"));+ }+ }++ #[test]+ fn every_default_displays_the_way_the_platform_writes_it() {+ for action in ACTIONS {+ for default in action.defaults {+ let shown = display(default);+ assert!(!shown.is_empty(), "{default} displays as nothing");+ }+ }+ let undo = display("ctrl+z");+ assert!(undo.to_lowercase().contains('z'), "{undo}");+ assert!(undo.contains("Ctrl") || undo.contains('⌃'), "{undo}");+ let ripple = display("shift+delete");+ assert!(!ripple.is_empty(), "the ripple delete displays as nothing");+ // A row for an action with no chord reads "" for its menu and+ // "—" where the row draws one.+ assert_eq!(display(""), "");+ }++ /// Two actions shipping on one chord would make one of them a lie:+ /// the table resolves the first it finds, and the other would never+ /// fire.+ #[test]+ fn no_two_actions_ship_on_the_same_chord() {+ let mut seen: BTreeMap<&str, &str> = BTreeMap::new();+ for action in ACTIONS {+ for default in action.defaults {+ if let Some(owner) = seen.insert(default, action.id) {+ panic!("{default} ships for both {owner} and {}", action.id);+ }+ }+ }+ }++ /// A row with no name would draw an empty line where the action's+ /// word belongs, and a name missing from en.json would read as its+ /// own key.+ #[test]+ fn every_action_has_a_name() {+ for action in ACTIONS {+ let named = name(action.id);+ assert!(!named.is_empty(), "{} has no name", action.id);+ assert!(+ !named.starts_with("shortcuts."),+ "{}'s name is a key",+ action.id+ );+ }+ }+}diff --git a/src/crates/concat/src/lib.rs b/src/crates/concat/src/lib.rsindex 64604b93..cadd9f8e 100644--- a/src/crates/concat/src/lib.rs+++ b/src/crates/concat/src/lib.rs@@ -39,6 +39,7 @@ mod gpu;mod grading;mod host;mod i18n;+mod keymap;/// The iPhone's pickers and its way to Photos; see the module.#[cfg(target_os = "ios")]mod ios;@@ -1402,6 +1403,122 @@ fn start(project: Option<std::path::PathBuf>, smoke: bool) -> Result<(), slint::shell.studio.borrow().publish(&app, &shell.models);}),});+ // Every key the window did not give to a field or a binding, raw:+ // the chord, what it resolves to and where that dispatches are one+ // table now (keymap.rs), and the capture field in Settings ›+ // Shortcuts listens on this same door — binding instead of+ // dispatching while a row holds the next key. True means the key+ // was used and the scope keeps it; false lets it go on up, to a+ // popup's Escape or to nothing at all.+ editor.on_key_chord(move |text, shift, alt, control, meta, on_start| {+ let chord = keymap::chord(text.as_str(), shift, alt, control, meta);+ let mut handled = false;+ Shell::with(|shell, app| {+ // ── the capture field ──+ if shell.studio.borrow().settings.capturing.is_some() {+ // Every key while a row listens goes to the row. A+ // modifier on its own is not a chord: it waits for the+ // key it is holding out for, which is swallowed here.+ handled = true;+ let Some(chord) = chord else {+ return;+ };+ // Escape declines; the row goes back to its chord.+ if chord == "escape" {+ let mut state = shell.studio.borrow_mut();+ state.settings.capturing = None;+ state.publish(&app, &shell.models);+ return;+ }+ // The menu bar's and the window's own chords stay+ // bindings in app.slint and would fire before this+ // callback ever ran in the editor; a row that claimed+ // one would be a row telling a lie.+ if keymap::reserved(&chord) {+ let mut state = shell.studio.borrow_mut();+ state.notify(&i18n::t("shortcuts.reserved"), true);+ state.publish(&app, &shell.models);+ return;+ }+ let mut state = shell.studio.borrow_mut();+ let Some(id) = state.settings.capturing.clone() else {+ return;+ };+ state.settings.capturing = None;+ // The chord is one action's: whoever held it loses it,+ // and the toast says which row is now unbound.+ let lost = keymap::bind(&mut state.prefs, &id, &chord);+ state.prefs.save(&state.host.dirs);+ if let Some(lost) = lost {+ state.notify(+ &i18n::tf("shortcuts.unboundNow", &[&keymap::name(lost)]),+ false,+ );+ }+ state.publish(&app, &shell.models);+ return;+ }++ // ── dispatch ──+ let Some(chord) = chord else {+ return;+ };+ if on_start {+ // The launch screen has no project to act on. Capture+ // is handled above, so its keys work there too.+ return;+ }+ let action = {+ let state = shell.studio.borrow();+ keymap::resolve(&state.prefs, &chord)+ };+ let Some(action) = action else {+ return;+ };+ handled = true;+ match action {+ // The playhead, straight: these were never menu rows and+ // their handlers are a seek apiece.+ "play" => {+ shell.studio.borrow_mut().play_toggle();+ shell.studio.borrow_mut().refresh_art();+ shell.studio.borrow().publish(&app, &shell.models);+ }+ step @ ("step-back" | "step-back-10" | "step-forward" | "step-forward-10") => {+ let frames: f32 = match step {+ "step-back" => -1.0,+ "step-back-10" => -10.0,+ "step-forward" => 1.0,+ _ => 10.0,+ };+ {+ let mut state = shell.studio.borrow_mut();+ state.pause();+ let fps = state.frame_rate().round().max(1.0);+ let at = (state.playhead * fps).round() + frames;+ state.seek(at / fps);+ }+ shell.studio.borrow_mut().refresh_art();+ shell.studio.borrow().publish_lanes(&app, &shell.models);+ }+ // The chords that are also menu rows go through the+ // menu's own handler, so the key and the row cannot come+ // apart — the same door on_shortcut keeps open.+ "save" | "undo" | "redo" | "import" | "export" | "settings" | "zoom-in"+ | "zoom-out" | "start" | "end" | "snap" | "pan" | "preview-axis" | "delete" => {+ app.invoke_app_menu_selected(SharedString::from(action));+ }+ // The rest: the editor's own table, the way the phone's+ // buttons and the tray reach it.+ _ => {+ shell.studio.borrow_mut().shortcut(action);+ shell.studio.borrow_mut().refresh_art();+ shell.studio.borrow().publish(&app, &shell.models);+ }+ }+ });+ handled+ });// ── the project sheet ──editor.on_modify_project(on_window!(|state| {@@ -1600,6 +1717,17 @@ fn start(project: Option<std::path::PathBuf>, smoke: bool) -> Result<(), slint::app.on_settings_page_changed(on_window!(|state, index: i32| {state.handle(Msg::Settings(SettingsMsg::PageChanged(index)));}));+ // The Shortcuts page: a row asked for the next keys, and the two+ // ways back — one row as it ships, or all of them.+ app.on_settings_shortcut_capture(on_window!(|state, id: SharedString| {+ state.handle(Msg::Settings(SettingsMsg::ShortcutCapture(id.to_string())));+ }));+ app.on_settings_shortcut_reset(on_window!(|state, id: SharedString| {+ state.handle(Msg::Settings(SettingsMsg::ShortcutReset(id.to_string())));+ }));+ app.on_settings_shortcut_reset_all(on_window!(|state| {+ state.handle(Msg::Settings(SettingsMsg::ShortcutResetAll));+ }));app.on_settings_show_log(on_window!(|state| {state.handle(Msg::Settings(SettingsMsg::ShowLog));}));diff --git a/src/crates/concat/src/panes/settings.rs b/src/crates/concat/src/panes/settings.rsindex 4943145b..3d68b4df 100644--- a/src/crates/concat/src/panes/settings.rs+++ b/src/crates/concat/src/panes/settings.rs@@ -13,21 +13,23 @@//! on disk after anything that could have changed it.use std::collections::HashMap;+use std::rc::Rc;use std::sync::Arc;use std::sync::atomic::{AtomicBool, Ordering};use concat_host::models::SourcePreference;use concat_host::updates::{self, Fixed, Installed, Release, Standing, Version};-use slint::SharedString;+use slint::{ModelRc, SharedString, VecModel};use crate::close_window;use crate::host::{on_ui, spawn};use crate::i18n::{self, t, tf};+use crate::keymap;use crate::panes::Msg;use crate::platform;use crate::prefs;use crate::studio::Studio;-use crate::ui::{ModelData, SettingsData};+use crate::ui::{ModelData, SettingsData, ShortcutData};/// Everything that can happen to the settings sheet.#[derive(Clone, Debug)]@@ -38,6 +40,15 @@ pub enum SettingsMsg {Open,Close,PageChanged(i32),+ /// The Shortcuts page: a row asked to hold the next key it should+ /// be bound to. The sheet closing puts the listening down too — see+ /// `Close` — so no key anywhere binds something the page stopped+ /// caring about.+ ShortcutCapture(String),+ /// One row put back as it ships, taking its chord off whoever holds+ /// it now, and every row put back at once.+ ShortcutReset(String),+ ShortcutResetAll,/// Show this run's log in the file manager.ShowLog,LanguageChanged(i32),@@ -162,6 +173,11 @@ pub fn installed(models: &[ModelState]) -> Vec<&ModelState> {pub struct SettingsPane {pub open: bool,pub tab: i32,+ /// The Shortcuts page's row listening for its next key: the action+ /// that key will bind to. None when none is — and when the sheet+ /// closes under a listening row, so a key pressed in the editor+ /// afterwards dispatches rather than binding.+ pub capturing: Option<String>,pub language: usize,/// The switch that keeps the playhead inside the content.pub playhead_stops: bool,@@ -225,7 +241,13 @@ impl SettingsPane {self.refresh(studio);self.open = true;}- SettingsMsg::Close => self.open = false,+ SettingsMsg::Close => {+ // A row left listening when the sheet goes would take+ // the next key anywhere in the window; it is put down+ // with the sheet.+ self.capturing = None;+ self.open = false;+ }SettingsMsg::PageChanged(index) => {self.tab = index;// The Version page looks for the releases the first time it@@ -235,6 +257,22 @@ impl SettingsPane {self.check_updates();}}+ SettingsMsg::ShortcutCapture(id) => self.capturing = Some(id),+ SettingsMsg::ShortcutReset(id) => {+ self.capturing = None;+ let lost = keymap::reset(&mut studio.prefs, &id);+ studio.prefs.save(&studio.host.dirs);+ // The shipped chord came back off whoever was holding+ // it, and that row now has no key until it is reset.+ if let Some(lost) = lost {+ studio.notify(&tf("shortcuts.unboundNow", &[&keymap::name(lost)]), false);+ }+ }+ SettingsMsg::ShortcutResetAll => {+ self.capturing = None;+ keymap::reset_all(&mut studio.prefs);+ studio.prefs.save(&studio.host.dirs);+ }SettingsMsg::ShowLog => {// The file this run is writing, when there is one, so the// manager opens with it selected; the folder when there is@@ -773,6 +811,24 @@ impl SettingsPane {SettingsData {open: self.open,tab: self.tab,+ // The keymap's rows as the page draws them: the chord each+ // action is on now, and whether that moved from the one it+ // ships on — which is the row's cue to offer its reset.+ shortcuts: ModelRc::from(Rc::new(VecModel::from(+ keymap::ACTIONS+ .iter()+ .map(|action| ShortcutData {+ id: action.id.into(),+ label: keymap::name(action.id).into(),+ keys: keymap::bound(&studio.prefs, action.id)+ .map(keymap::display)+ .unwrap_or_default()+ .into(),+ custom: studio.prefs.keybinds.contains_key(action.id),+ })+ .collect::<Vec<_>>(),+ ))),+ capturing: self.capturing.clone().unwrap_or_default().into(),language: self.language as i32,log_level: LOG_LEVELS.iter()diff --git a/src/crates/concat/src/prefs.rs b/src/crates/concat/src/prefs.rsindex 39ab4b15..c5fe695a 100644--- a/src/crates/concat/src/prefs.rs+++ b/src/crates/concat/src/prefs.rs@@ -6,6 +6,8 @@//! models are chosen, which languages. A missing or unreadable file is the//! defaults, never an error.+use std::collections::BTreeMap;+use concat_host::AppDirs;use serde::{Deserialize, Serialize};@@ -110,6 +112,12 @@ pub struct Preferences {/// How the voiceover panel was last set up.#[serde(default)]pub voiceover: VoiceoverPrefs,+ /// Rebound shortcuts, by action id: the chord each was given, or ""+ /// for an action a rebind left with none. Absent is the shipped+ /// chord — the file holds what moved, not the whole table. Written+ /// by Settings › Shortcuts; resolved in [`crate::keymap`].+ #[serde(default)]+ pub keybinds: BTreeMap<String, String>,}/// The voiceover panel's choices, kept from one take to the next and one@@ -417,4 +425,24 @@ mod tests {assert_eq!(older.ui_scale, None);assert_eq!(older.scale_index(), 0);}++ /// The shortcuts a person rebound ride along, one chord per action,+ /// and a file from before the shortcuts page existed loads with the+ /// table as it ships.+ #[test]+ fn rebound_shortcuts_round_trip_and_an_older_file_has_none() {+ let mut prefs = Preferences {+ dark: Some(true),+ ..Preferences::default()+ };+ prefs.keybinds.insert("cut-left".into(), "j".into());+ prefs.keybinds.insert("mute".into(), String::new());+ let text = serde_json::to_string(&prefs).unwrap();+ assert!(text.contains("\"keybinds\""), "{text}");+ let back: Preferences = serde_json::from_str(&text).unwrap();+ assert_eq!(back.keybinds.get("cut-left").map(String::as_str), Some("j"));+ assert_eq!(back.keybinds.get("mute").map(String::as_str), Some(""));+ let older: Preferences = serde_json::from_str(r#"{"dark": false}"#).unwrap();+ assert!(older.keybinds.is_empty());+ }}diff --git a/src/crates/concat/src/studio.rs b/src/crates/concat/src/studio.rsindex 0e34cc91..5aec3860 100644--- a/src/crates/concat/src/studio.rs+++ b/src/crates/concat/src/studio.rs@@ -62,6 +62,7 @@ use crate::host::{strip_window, window_art, window_span, window_start,};use crate::i18n::{self, t, tf};+use crate::keymap;use crate::panes::settings::installed;use crate::platform;use crate::prefs::Preferences;@@ -8083,6 +8084,26 @@ impl Studio {// ── publishing ──pub fn publish(&self, app: &App, models: &Models) {+ // The tray's three menu labels and the tooltips' bare-letter+ // hints, spelled from the keymap so a rebind moves the words+ // with the key. An action left unbound shows an em dash rather+ // than an empty bracket: there is a key, there just is not one+ // now.+ let hint = |id: &str| {+ let shown = keymap::label(&self.prefs, id);+ if shown.is_empty() {+ "—".to_owned()+ } else {+ shown+ }+ };+ let editor = app.global::<Editor>();+ editor.set_keys_undo(hint("undo").into());+ editor.set_keys_redo(hint("redo").into());+ editor.set_keys_split(hint("split").into());+ editor.set_keys_split_tool(hint("split-tool").into());+ editor.set_keys_pan(hint("pan").into());+ editor.set_keys_preview_axis(hint("preview-axis").into());self.publish_lanes(app, models);self.publish_chrome(app, models);self.publish_dock(app, models);@@ -10138,21 +10159,21 @@ impl Studio {"copy",t("common.copy"),Glyph::Copy,- &platform::keys(&["Control", "C"]),+ &keymap::label(&self.prefs, "copy"),true,),action("duplicate",t("studio.duplicate"),Glyph::Plus,- &platform::keys(&["Control", "D"]),+ &keymap::label(&self.prefs, "duplicate"),!locked,),action("paste",t("studio.paste"),Glyph::Plus,- &platform::keys(&["Control", "V"]),+ &keymap::label(&self.prefs, "paste"),!self.clipboard.is_empty(),),rule(),@@ -10160,7 +10181,7 @@ impl Studio {"split",t("studio.splitAtPlayhead"),Glyph::Split,- &platform::keys(&["Control", "B"]),+ &keymap::label(&self.prefs, "split"),straddled && !locked,),action(@@ -10174,7 +10195,7 @@ impl Studio {"freeze","Freeze frame".into(),Glyph::Frame,- "F",+ &keymap::label(&self.prefs, "freeze"),straddled&& !locked&& (clip.kind == model::ClipKind::Video || clip.kind == model::ClipKind::Image),@@ -10255,7 +10276,7 @@ impl Studio {label: t("common.delete").into(),kind: MenuRow::Action,glyph: Glyph::Trash,- shortcut: platform::delete_key(false).into(),+ shortcut: keymap::label(&self.prefs, "delete").into(),enabled: !locked,danger: true,checkable: false,@@ -10439,21 +10460,21 @@ impl Studio {"import",t("studio.importMedia"),Glyph::Import,- &platform::keys(&["Control", "I"]),+ &keymap::label(&self.prefs, "import"),true,),row("save",t("studio.save"),Glyph::Import,- &platform::keys(&["Control", "S"]),+ &keymap::label(&self.prefs, "save"),true,),row("export",t("studio.export"),Glyph::Export,- "",+ &keymap::label(&self.prefs, "export"),!self.timeline().clips.is_empty(),),row(@@ -10476,7 +10497,7 @@ impl Studio {"settings",t("studio.settings"),Glyph::Settings,- &platform::keys(&["Control", ","]),+ &keymap::label(&self.prefs, "settings"),true,),rule(),@@ -10526,14 +10547,14 @@ impl Studio {"undo",t("studio.undo"),Glyph::Undo,- &platform::keys(&["Control", "Z"]),+ &keymap::label(&self.prefs, "undo"),can_undo,),row("redo",t("studio.redo"),Glyph::Redo,- &platform::keys(&["Control", "Shift", "Z"]),+ &keymap::label(&self.prefs, "redo"),can_redo,),rule(),@@ -10541,7 +10562,7 @@ impl Studio {"split",t("studio.splitAtPlayhead"),Glyph::Razor,- &platform::keys(&["Control", "B"]),+ &keymap::label(&self.prefs, "split"),straddled,),MenuItemData {@@ -10554,7 +10575,7 @@ impl Studio {.into(),kind: MenuRow::Action,glyph: Glyph::Trash,- shortcut: platform::delete_key(false).into(),+ shortcut: keymap::label(&self.prefs, "delete").into(),enabled: selected > 0,danger: true,checkable: false,@@ -10566,7 +10587,7 @@ impl Studio {label: t("common.snapToEdges").into(),kind: MenuRow::Action,glyph: Glyph::None,- shortcut: "N".into(),+ shortcut: keymap::label(&self.prefs, "snap").into(),enabled: true,danger: false,checkable: true,@@ -10585,8 +10606,20 @@ impl Studio {},],2 => vec![- row("zoom-in", t("common.zoomIn"), Glyph::Plus, "+", true),- row("zoom-out", t("common.zoomOut"), Glyph::Minus, "-", true),+ row(+ "zoom-in",+ t("common.zoomIn"),+ Glyph::Plus,+ &keymap::label(&self.prefs, "zoom-in"),+ true,+ ),+ row(+ "zoom-out",+ t("common.zoomOut"),+ Glyph::Minus,+ &keymap::label(&self.prefs, "zoom-out"),+ true,+ ),rule(),check("sort-added", "Sort by: Added", self.media.sort == 0),check("sort-name", "Sort by: Name", self.media.sort == 1),@@ -10596,10 +10629,16 @@ impl Studio {"start",t("common.goToStart"),Glyph::SkipBack,- "Home",+ &keymap::label(&self.prefs, "start"),+ true,+ ),+ row(+ "end",+ t("common.goToEnd"),+ Glyph::SkipForward,+ &keymap::label(&self.prefs, "end"),true,),- row("end", t("common.goToEnd"), Glyph::SkipForward, "End", true),],_ => Vec::new(),}diff --git a/src/crates/concat/ui/app.slint b/src/crates/concat/ui/app.slintindex 00cd5550..0c7f7c61 100644--- a/src/crates/concat/ui/app.slint+++ b/src/crates/concat/ui/app.slint@@ -263,6 +263,11 @@ export component App inherits Window {callback settings-version-chosen(index: int);callback settings-install-version();callback settings-install-cancel();+ /// The Shortcuts page: a row asked to capture the next keys, and the+ /// two ways out of a change — put one row back, or put them all back.+ callback settings-shortcut-capture(id: string);+ callback settings-shortcut-reset(id: string);+ callback settings-shortcut-reset-all();callback model-activated(id: string);callback model-download(id: string);callback model-cancel(id: string);@@ -400,41 +405,24 @@ export component App inherits Window {// remaps it to ⌘ on macOS and leaves it Ctrl on Windows and Linux, and// the menu row beside it is written from the same keys (platform.rs,// `keys`), so what a row says is what works on the machine it is on.- // Bindings rather than letters compared in `key-pressed`: a binding- // matches whatever the case, so Caps Lock does not turn every chord off.+ //+ // What still lives in bindings here is the window's own: the menu+ // bar's F10 and Alt+F/E/V, and opening, closing and quitting. A+ // binding on this scope is matched before `key-pressed` below runs,+ // so these hold their keys whatever the keymap says — which is why+ // Settings › Shortcuts turns those chords away rather than letting a+ // row claim a key that would not answer to it. Every other shortcut+ // is one table in Rust now (src/keymap.rs), rebindable there and+ // reached through `key-pressed`.keys := FocusScope {width: 100%;height: 100%;focus-on-tab-navigation: false;- // Through the menu's own callback rather than a second handler: a- // shortcut and the row that advertises it have to do the same thing,- // and the cheapest way to be sure of that is for there to be one- // thing. Every other row in those menus is a KeyBinding away from- // working the same way.- KeyBinding {- keys: @keys(Control + S);- // Nothing on the launch screen has a project to act on, which is- // why the strip up there is missing the menus this belongs to.- enabled: !root.on-start;- activated => { root.app-menu-selected("save"); }- }- KeyBinding {- keys: @keys(Control + Z);- enabled: !root.on-start;- activated => { root.app-menu-selected("undo"); }- }- KeyBinding {- keys: @keys(Control + Shift + Z);- enabled: !root.on-start;- activated => { root.app-menu-selected("redo"); }- }- // Windows and Linux redo on Ctrl+Y as well; on a Mac ⌘Y is not redo.- KeyBinding {- keys: @keys(Control + Y);- enabled: !root.on-start && !root.macos;- activated => { root.app-menu-selected("redo"); }- }+ // The editor's chords were bound here, one KeyBinding apiece —+ // save, undo, redo, split, copy and the rest. They are the+ // keymap's now: a person moves one in Settings › Shortcuts, and+ // the key, the menu row's label and the dispatch all follow it.KeyBinding {keys: @keys(F10);enabled: !root.on-start && !root.macos && !root.phone;@@ -476,72 +464,16 @@ export component App inherits Window {enabled: !root.macos;activated => { root.app-menu-selected("close-window"); }}- // The editor's chords, each the shortcut its menu row names.- KeyBinding {- keys: @keys(Control + B);- enabled: !root.on-start;- activated => { Editor.shortcut("split"); }- }- KeyBinding {- keys: @keys(Control + A);- enabled: !root.on-start;- activated => { Editor.shortcut("select-all"); }- }- KeyBinding {- keys: @keys(Control + C);- enabled: !root.on-start;- activated => { Editor.shortcut("copy"); }- }- KeyBinding {- keys: @keys(Control + V);- enabled: !root.on-start;- activated => { Editor.shortcut("paste"); }- }- KeyBinding {- keys: @keys(Control + D);- enabled: !root.on-start;- activated => { Editor.shortcut("duplicate"); }- }- KeyBinding {- keys: @keys(Control + E);- enabled: !root.on-start;- activated => { Editor.shortcut("export"); }- }- KeyBinding {- keys: @keys(Control + I);- enabled: !root.on-start;- activated => { Editor.shortcut("import"); }- }- KeyBinding {- keys: @keys(Control + ",");- enabled: !root.on-start;- activated => { Editor.shortcut("settings"); }- }- // Zoom in on = as well as +: they share a key on most layouts, and- // nobody reaches for Shift to zoom.- KeyBinding {- keys: @keys(Control + "=");- enabled: !root.on-start;- activated => { Editor.shortcut("zoom-in"); }- }- KeyBinding {- keys: @keys(Control + Plus);- enabled: !root.on-start;- activated => { Editor.shortcut("zoom-in"); }- }- KeyBinding {- keys: @keys(Control + "-");- enabled: !root.on-start;- activated => { Editor.shortcut("zoom-out"); }- }-- // The rest of the keyboard, laid out the way every editor has- // taught its users: the chord key with a letter for an edit, a- // bare letter for a tool, the arrows and Home/End for the- // playhead. Every one lands here only when nothing else took it -- // a field being typed into consumes its own letters and spaces- // before a key can walk up to this scope, which is what keeps- // typing a title from cutting a clip.+ // Everything the keymap owns lands here only when nothing else+ // took it - a field being typed into consumes its own letters and+ // spaces before a key can walk up to this scope, which is what+ // keeps typing a title from cutting a clip, and the bindings above+ // take theirs before this runs. The event crosses raw: the text+ // and the modifier flags, because the chord, the action it names+ // and where that dispatches are one table in Rust (keymap.rs),+ // and the capture field in Settings > Shortcuts listens on this+ // same callback. False lets the key go on up, so Escape still+ // closes a popup and Tab still moves focus.key-pressed(event) => {// Escape closes the sheet on top, as its × does. A sheet busy// with a job keeps itself - its × is gone then too - and the@@ -568,62 +500,10 @@ export component App inherits Window {return accept;}}- if (root.on-start) {- return reject;- }- // A chord is the bindings' above; one they did not take is- // nobody's, and must not fall through to the bare letters- // below - Ctrl+H is not the hand.- if (event.modifiers.control || event.modifiers.meta) {- return reject;- }- if (event.modifiers.alt) {- return reject;- }- if (event.text == Key.Space) { Editor.play-toggled(); return accept; }- // Shift closes the gap the deletion leaves - the ripple delete- // of every other editor, on the key they all use for it.- // https://github.com/jub0t/Concat/issues/106- if (event.text == Key.Delete || event.text == Key.Backspace) {- if (event.modifiers.shift) {- Editor.shortcut("ripple-delete");- } else {- Editor.delete-selected();- }- return accept;- }- if (event.text == Key.Home) { Editor.shortcut("start"); return accept; }- if (event.text == Key.End) { Editor.shortcut("end"); return accept; }- // A frame, or ten with shift.- if (event.text == Key.LeftArrow) {- Editor.step-frames(event.modifiers.shift ? -10 : -1);+ if (Editor.key-chord(event.text, event.modifiers.shift, event.modifiers.alt,+ event.modifiers.control, event.modifiers.meta, root.on-start)) {return accept;}- if (event.text == Key.RightArrow) {- Editor.step-frames(event.modifiers.shift ? 10 : 1);- return accept;- }- if (event.modifiers.shift) {- return reject;- }- // Lower-cased, so Caps Lock leaves the letters alone.- let letter = event.text.to-lowercase();- // B is the razor: the split tool, on and off, the key every- // editor cuts with. The chord B above splits at the playhead.- // https://github.com/jub0t/Concat/issues/241- if (letter == "b") { Editor.shortcut("split-tool"); return accept; }- // Q and E are the big editors' trim keys: the selected clip is- // cut at the playhead, Q dropping its left, E its right.- if (letter == "q") { Editor.shortcut("cut-left"); return accept; }- if (letter == "e") { Editor.shortcut("cut-right"); return accept; }- if (letter == "n") { Editor.shortcut("snap"); return accept; }- if (letter == "s") { Editor.shortcut("preview-axis"); return accept; }- if (letter == "m") { Editor.shortcut("mute"); return accept; }- // H is the hand: the pan tool, on and off, the key every- // editor's canvas grabs with. It and J were the flips once;- // flipping is the inspector's and the clip menu's now, and J- // is free.- if (letter == "h") { Editor.shortcut("pan"); return accept; }return reject;}@@ -829,9 +709,16 @@ export component App inherits Window {languages: root.languages;system-facts: root.system-facts;system-report: root.system-report;+ on-start: root.on-start;+ // Focus hands itself back to the window's own scope, which is+ // where the keymap listens and what the bindings above live on.+ focus-keys => { keys.focus(); }closed => { root.settings-closed(); }page-changed(index) => { root.settings-page-changed(index); }+ shortcut-capture(id) => { root.settings-shortcut-capture(id); }+ shortcut-reset(id) => { root.settings-shortcut-reset(id); }+ shortcut-reset-all => { root.settings-shortcut-reset-all(); }show-log => { root.settings-show-log(); }language-changed(index) => { root.settings-language-changed(index); }log-level-changed(index) => { root.settings-log-level-changed(index); }diff --git a/src/crates/concat/ui/dialogs/settings.slint b/src/crates/concat/ui/dialogs/settings.slintindex 310e345d..6dcff7dd 100644--- a/src/crates/concat/ui/dialogs/settings.slint+++ b/src/crates/concat/ui/dialogs/settings.slint@@ -13,6 +13,7 @@ import { Fmt } from "../util.slint";import { Select } from "../primitives/select.slint";import { PaneScroll } from "../workspace/pane.slint";import { HairlineSplitter } from "../workspace/splitter.slint";+import { Editor } from "../editor.slint";// Settings: a fixed-height sheet with a column of pages down the side. The// model rows keep two things apart — a downloaded model is a *choice* and so@@ -46,10 +47,22 @@ export struct SystemFactData {value: string,}+/// One row of the Shortcuts page: what the action is called, what key+/// it is on, and whether that key moved from the one it ships on — the+/// last so the row knows to offer a Reset.+export struct ShortcutData {+ id: string,+ label: string,+ /// as this platform writes it; empty when a rebind left the action+ /// with no key at all, which the row draws as an em dash+ keys: string,+ custom: bool,+}+export struct SettingsData {open: bool,/// 0 General, 1 Appearance, 2 Transcriber, 3 Speech, 4 Remote, 5 About,- /// 6 Version+ /// 6 Version, 7 Shortcutstab: int,language: int,/// what the log records: 0 errors only, 1 warnings, 2 normal, 3@@ -97,6 +110,12 @@ export struct SettingsData {/// package that can be put in place; and why not, when notcan-install: bool,install-note: string,+ /// The Shortcuts page's rows, in the order the page draws them.+ shortcuts: [ShortcutData],+ /// The row listening for its keys: its action id, or "" when none+ /// is. A key pressed while this is set binds instead of dispatching,+ /// and Escape puts it back to "".+ capturing: string,}// Accuracy, as pips rather than a number: five little bars say "third of five"@@ -454,6 +473,107 @@ component FactRow inherits HorizontalLayout {}}+/// One row of the Shortcuts page: the action's name, the keys it is on+/// written the way this platform writes them, and — only for the ones+/// that moved — a way back. The row listening for its next key says so+/// where the chord was, in the accent: the keys are the thing about to+/// change, so that is where the eye should be. The whole row is the+/// button, because a row you have to find a button inside is a row you+/// miss.+component ShortcutRow inherits Rectangle {+ in property <string> label;+ in property <string> keys;+ /// the chord moved from the one it ships on (or the action was left+ /// with none): the row draws a reset+ in property <bool> custom;+ /// this row is holding the window's next key+ in property <bool> capturing;++ callback pressed();+ callback reset();++ height: 30px;+ border-radius: Theme.r-sm;+ background: root.capturing ? Theme.accent-soft+ : touch.has-hover ? Theme.field+ : Colors.transparent;++ animate background { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }++ HorizontalLayout {+ padding-left: 10px;+ padding-right: 6px;+ spacing: 8px;++ Text {+ horizontal-stretch: 1;+ text: root.label;+ color: Theme.fg;+ font-size: Theme.fs;+ vertical-alignment: center;+ overflow: elide;+ }++ // The chord in a chip — a key, not a word, in the face the+ // fields keep for values. An action a rebind left with no key+ // reads "—" rather than vanishing: it is still an action, and+ // its reset is right beside it.+ Rectangle {+ height: 21px;+ border-radius: Theme.r-sm;+ border-width: root.capturing ? 1px : 0px;+ border-color: root.capturing ? Theme.accent : Colors.transparent;+ background: root.capturing ? Colors.transparent+ : root.keys == "" ? Colors.transparent+ : Theme.field-active;++ HorizontalLayout {+ padding-left: 7px;+ padding-right: 7px;++ Text {+ text: root.capturing ? I18n.t("shortcuts.press")+ : root.keys == "" ? "—" : root.keys;+ color: root.capturing ? Theme.accent : Theme.fg;+ font-family: Theme.font-technical;+ font-size: Theme.fs;+ vertical-alignment: center;+ overflow: elide;+ }+ }+ }++ // Not an IconButton: its own FocusScope takes focus on a press,+ // and focus the window has lost is focus the keymap cannot use+ // until the sheet closes. A TouchArea under an Icon moves+ // nothing.+ if root.custom: Rectangle {+ width: 24px;+ height: 20px;+ border-radius: Theme.r-sm;+ background: reset-touch.has-hover ? Theme.field : Colors.transparent;++ Icon {+ glyph: Glyph.reset;+ size: 13px;+ tint: reset-touch.has-hover ? Theme.fg : Theme.fg-muted;+ x: (parent.width - self.width) / 2;+ y: (parent.height - self.height) / 2;+ }++ reset-touch := TouchArea {+ mouse-cursor: pointer;+ clicked => { root.reset(); }+ }+ }+ }++ touch := TouchArea {+ mouse-cursor: pointer;+ clicked => { root.pressed(); }+ }+}+export component SettingsDialog inherits Modal {in property <SettingsData> data;in property <[ModelData]> transcribers;@@ -511,6 +631,15 @@ export component SettingsDialog inherits Modal {callback model-download(id: string);callback model-cancel(id: string);callback model-remove(id: string);+ /// The Shortcuts page: a row asked for the next keys it should be+ /// bound to, one row put back as it ships, and all of them put back.+ callback shortcut-capture(id: string);+ callback shortcut-reset(id: string);+ callback shortcut-reset-all();+ /// Focus handed back to the window's own scope, where the keymap+ /// listens: the capture field gives it up when its key has been+ /// heard, and the window answers with its own `keys.focus()`.+ callback focus-keys();/// `Theme.accent-names`, each in the chosen language, in the same order./// A second list rather than a lookup on the first because the string@@ -541,6 +670,8 @@ export component SettingsDialog inherits Modal {property <[{label: string, glyph: Glyph, page: int, desk: bool}]> page-list: [{label: I18n.t("settings.general"), glyph: Glyph.settings, page: 0, desk: false},{label: I18n.t("settings.appearance"), glyph: Glyph.sun, page: 1, desk: false},+ // The keys: a desk's, since a phone has no keyboard to bind.+ {label: I18n.t("settings.shortcuts"), glyph: Glyph.keyboard, page: 7, desk: true},{label: I18n.t("common.transcriber"), glyph: Glyph.waveform, page: 2, desk: false},{label: I18n.t("common.speech"), glyph: Glyph.music, page: 3, desk: false},{label: I18n.t("settings.automation"), glyph: Glyph.lock, page: 4, desk: true},@@ -548,6 +679,12 @@ export component SettingsDialog inherits Modal {{label: I18n.t("settings.about"), glyph: Glyph.sparkle, page: 5, desk: false},];+ /// The launch screen is up: no project, so no dispatch. The capture+ /// field still works there — binding a key is not an edit — but the+ /// key it hands over says this so the window can refuse to dispatch+ /// one once capture is over.+ in property <bool> on-start;+/// The column of pages' width, as the hairline beside it was last left./// In-out because it is dragged; what is drawn is `pages` below, which/// keeps it inside the room the sheet has.@@ -1392,7 +1529,77 @@ export component SettingsDialog inherits Modal {}}}++ if root.data.tab == 7 && !root.phone: VerticalLayout {+ DialogSection {+ first: true;+ title: I18n.t("settings.shortcuts");+ hint: I18n.t("shortcuts.hint");++ // Flat rows, one per action, the way the system report+ // draws its lines: a page of chords is scanned, not+ // browsed, and cards would put a border between every+ // key and its neighbour.+ VerticalLayout {+ spacing: 2px;++ for row in root.data.shortcuts: ShortcutRow {+ label: row.label;+ keys: row.keys;+ custom: row.custom;+ capturing: root.data.capturing == row.id;++ pressed => {+ root.shortcut-capture(row.id);+ capture-scope.focus();+ }+ reset => { root.shortcut-reset(row.id); }+ }+ }++ // Back to how they all ship, in one press: the escape+ // hatch a page of rebinds needs when the keys have gone+ // too far to walk back a row at a time.+ Button {+ label: I18n.t("shortcuts.resetAll");+ glyph: Glyph.reset;+ ghost: true;+ clicked => { root.shortcut-reset-all(); }+ }+ }+ }+ }}+ }++ // The Shortcuts page's field: a scope that exists for the dialog's+ // whole life, so switching pages while it listens cannot destroy it+ // and leave the window with no focused key handler. A row press+ // focuses it; the first key it hears is the one that binds — Rust+ // answers through Editor.key-chord — and the moment that key is+ // spent, focus goes back to the window's own scope, where the+ // keymap and the window's fixed bindings live.+ capture-scope := FocusScope {+ width: 0px;+ height: 0px;++ key-pressed(event) => {+ if (root.data.capturing == "") {+ // Nothing is listening any more: the capture was put+ // down some other way. Hand focus back and let the key+ // go where it would have gone.+ root.focus-keys();+ return reject;+ }+ let handled = Editor.key-chord(event.text, event.modifiers.shift,+ event.modifiers.alt, event.modifiers.control,+ event.modifiers.meta, root.on-start);+ if (root.data.capturing == "") {+ // The key was the one — bound, or Escape declining it —+ // and the row is no longer listening.+ root.focus-keys();+ }+ return handled ? accept : reject;}}}diff --git a/src/crates/concat/ui/editor.slint b/src/crates/concat/ui/editor.slintindex ca017b0f..67c60a9c 100644--- a/src/crates/concat/ui/editor.slint+++ b/src/crates/concat/ui/editor.slint@@ -466,4 +466,23 @@ export global Editor {/// callback with a verb rather than one per key, so the window's key/// table and the state's answer to it stay in one place each.callback shortcut(action: string);++ /// A key the window's own scope did not give to a field, handed over+ /// raw: the text it would type and the modifiers held. Rust builds+ /// the chord, resolves it against the keymap — which Settings ›+ /// Shortcuts rebinds — dispatches it, and answers whether the key+ /// was used. It is also the way a capture in that page receives its+ /// key: the callback binds instead of dispatches while a row is+ /// listening.+ callback key-chord(text: string, shift: bool, alt: bool, control: bool, meta: bool, on-start: bool) -> bool;++ /// The tray's three menu labels' shortcuts and the tooltips' own key+ /// hints, as this platform writes them — kept by Rust from the same+ /// keymap the window dispatches on, so a rebind moves the hint too.+ in-out property <string> keys-undo;+ in-out property <string> keys-redo;+ in-out property <string> keys-split;+ in-out property <string> keys-split-tool;+ in-out property <string> keys-pan;+ in-out property <string> keys-preview-axis;}diff --git a/src/crates/concat/ui/icons.slint b/src/crates/concat/ui/icons.slintindex 6591d56b..ba8ac348 100644--- a/src/crates/concat/ui/icons.slint+++ b/src/crates/concat/ui/icons.slint@@ -93,6 +93,8 @@ export enum Glyph {transition,slot,settings,+ /// the Shortcuts page: a keyboard seen from above+ keyboard,sun,moon,export,@@ -379,6 +381,14 @@ export component Icon inherits Rectangle {+ " 10v4 M8 12H3";}+ // lucide/keyboard+ if root.glyph == Glyph.keyboard: Stroked {+ size: root.size; tint: root.tint; weight: root.weight;+ commands: "M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2"+ + " 2 0 0 1 2-2Z M6 8h.01 M10 8h.01 M14 8h.01 M18 8h.01 M8 12h.01"+ + " M12 12h.01 M16 12h.01 M7 16h10";+ }+// lucide/sunif root.glyph == Glyph.sun: Stroked {size: root.size; tint: root.tint; weight: root.weight;diff --git a/src/crates/concat/ui/timeline/tray.slint b/src/crates/concat/ui/timeline/tray.slintindex ab3c5f4e..74a1cede 100644--- a/src/crates/concat/ui/timeline/tray.slint+++ b/src/crates/concat/ui/timeline/tray.slint@@ -7,6 +7,7 @@ import { Glyph, Icon } from "../icons.slint";import { IconButton } from "../primitives/panel.slint";import { LevelMeter } from "../primitives/level-meter.slint";import { TimelineTool } from "model.slint";+import { Editor } from "../editor.slint";// The timeline's tool tray.//@@ -239,14 +240,14 @@ export component TimelineTray inherits Rectangle {TrayButton {glyph: Glyph.undo;- label: I18n.t1("tray.undo", @keys(Control + Z).to-string());+ label: I18n.t1("tray.undo", Editor.keys-undo);icon-size: 16px;enabled: root.can-undo;clicked => { root.undo(); }}TrayButton {glyph: Glyph.redo;- label: I18n.t1("tray.redo", @keys(Control + Shift + Z).to-string());+ label: I18n.t1("tray.redo", Editor.keys-redo);icon-size: 16px;enabled: root.can-redo;clicked => { root.redo(); }@@ -259,16 +260,16 @@ export component TimelineTray inherits Rectangle {// already where you were looking.TrayButton {glyph: Glyph.split;- label: I18n.t1("tray.splitAtPlayhead", @keys(Control + B).to-string());+ label: I18n.t1("tray.splitAtPlayhead", Editor.keys-split);icon-size: 16px;clicked => { root.split(); }}// And the razor, a tool rather than a verb: on, a click on a clip- // cuts it where the pointer is. B turns it on and off.+ // cuts it where the pointer is. Its key turns it on and off.// https://github.com/jub0t/Concat/issues/241TrayButton {glyph: Glyph.razor;- label: I18n.t("tray.splitTool");+ label: I18n.t1("tray.splitTool", Editor.keys-split-tool);icon-size: 16px;checked: root.tool == TimelineTool.split;clicked => {@@ -337,7 +338,7 @@ export component TimelineTray inherits Rectangle {TrayButton {glyph: Glyph.hand;- label: I18n.t("tray.panTool");+ label: I18n.t1("tray.panTool", Editor.keys-pan);icon-size: 16px;checked: root.pan-mode;clicked => { root.pan-changed(!root.pan-mode); }@@ -418,8 +419,8 @@ export component TimelineTray inherits Rectangle {TrayButton {glyph: Glyph.axis;label: root.preview-axis- ? I18n.t("tray.turnOffPreviewAxis")- : I18n.t("tray.turnOnPreviewAxis");+ ? I18n.t1("tray.turnOffPreviewAxis", Editor.keys-preview-axis)+ : I18n.t1("tray.turnOnPreviewAxis", Editor.keys-preview-axis);icon-size: 16px;checked: root.preview-axis;clicked => { root.preview-axis-changed(!root.preview-axis); }