Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

fix: remove dead editor-shortcut callback from lib.rs

Domicaccfda143470b
diff --git a/src/crates/concat/locales/de.json b/src/crates/concat/locales/de.json
index 7075b92e..babe2abc 100644
--- a/src/crates/concat/locales/de.json
+++ b/src/crates/concat/locales/de.json
@@ -99,6 +99,7 @@
"Content": "Inhalt",
"CONTENTS": "INHALT",
"Contents": "Inhalt",
+ "Context menu": "Kontextmenü",
"Contrast": "Kontrast",
"Contrast Pop": "Kontrast-Pop",
"Cool": "Kühl",
@@ -127,6 +128,8 @@
"Delete": "Löschen",
"Max width": "Maximale Breite",
"Generate Captions": "Untertitel erzeugen",
+ "Show advanced actions": "Erweiterte Aktionen anzeigen",
+ "Show Flip horizontal, Flip vertical, and Reverse in the clip context menu. Keyboard shortcuts (H, J, R) always work.": "Horizontal spiegeln, Vertikal spiegeln und Umkehren im Clip-Kontextmenü anzeigen. Tastenkürzel (H, J, R) funktionieren immer.",
"Text to Speech": "Text zu Sprache",
"Downloads": "Downloads",
"Automatic": "Automatisch",
diff --git a/src/crates/concat/locales/en.json b/src/crates/concat/locales/en.json
index f416d013..af9d49f2 100644
--- a/src/crates/concat/locales/en.json
+++ b/src/crates/concat/locales/en.json
@@ -133,6 +133,7 @@
"Content": "Content",
"CONTENTS": "CONTENTS",
"Contents": "Contents",
+ "Context menu": "Context menu",
"Contrast": "Contrast",
"Contrast Pop": "Contrast Pop",
"Cool": "Cool",
@@ -553,6 +554,8 @@
"Shift": "Shift",
"Shifts the picture towards candlelight.": "Shifts the picture towards candlelight.",
"Shifts the picture towards daylight shade.": "Shifts the picture towards daylight shade.",
+ "Show advanced actions": "Show advanced actions",
+ "Show Flip horizontal, Flip vertical, and Reverse in the clip context menu. Keyboard shortcuts (H, J, R) always work.": "Show Flip horizontal, Flip vertical, and Reverse in the clip context menu. Keyboard shortcuts (H, J, R) always work.",
"Show in folder": "Show in folder",
"Show lane": "Show lane",
"Show the log": "Show the log",
diff --git a/src/crates/concat/locales/es.json b/src/crates/concat/locales/es.json
index 95d30962..2032950e 100644
--- a/src/crates/concat/locales/es.json
+++ b/src/crates/concat/locales/es.json
@@ -99,6 +99,7 @@
"Content": "Contenido",
"CONTENTS": "CONTENIDO",
"Contents": "Contenido",
+ "Context menu": "Menú contextual",
"Contrast": "Contraste",
"Contrast Pop": "Contraste vivo",
"Cool": "Frío",
@@ -127,6 +128,8 @@
"Delete": "Eliminar",
"Max width": "Ancho máximo",
"Generate Captions": "Generar subtítulos",
+ "Show advanced actions": "Mostrar acciones avanzadas",
+ "Show Flip horizontal, Flip vertical, and Reverse in the clip context menu. Keyboard shortcuts (H, J, R) always work.": "Mostrar Voltear horizontal, Voltear vertical e Invertir en el menú contextual del clip. Los atajos de teclado (H, J, R) siempre funcionan.",
"Text to Speech": "Texto a voz",
"Downloads": "Descargas",
"Automatic": "Automático",
diff --git a/src/crates/concat/locales/fr.json b/src/crates/concat/locales/fr.json
index 2ace2634..18137bac 100644
--- a/src/crates/concat/locales/fr.json
+++ b/src/crates/concat/locales/fr.json
@@ -99,6 +99,7 @@
"Content": "Contenu",
"CONTENTS": "CONTENU",
"Contents": "Contenu",
+ "Context menu": "Menu contextuel",
"Contrast": "Contraste",
"Contrast Pop": "Contraste vif",
"Cool": "Froid",
@@ -127,6 +128,8 @@
"Delete": "Supprimer",
"Max width": "Largeur maximale",
"Generate Captions": "Générer les sous-titres",
+ "Show advanced actions": "Afficher les actions avancées",
+ "Show Flip horizontal, Flip vertical, and Reverse in the clip context menu. Keyboard shortcuts (H, J, R) always work.": "Afficher Retourner horizontalement, Retourner verticalement et Inverser dans le menu contextuel du clip. Les raccourcis clavier (H, J, R) fonctionnent toujours.",
"Text to Speech": "Synthèse vocale",
"Downloads": "Téléchargements",
"Automatic": "Automatique",
diff --git a/src/crates/concat/locales/hr.json b/src/crates/concat/locales/hr.json
index c324f15a..1d935b85 100644
--- a/src/crates/concat/locales/hr.json
+++ b/src/crates/concat/locales/hr.json
@@ -125,6 +125,7 @@
"Content": "Sadržaj",
"CONTENTS": "SADRŽAJ",
"Contents": "Sadržaj",
+ "Context menu": "Kontekstni izbornik",
"Contrast": "Kontrast",
"Contrast Pop": "Kontrastni pop",
"Cool": "Hladno",
@@ -160,6 +161,8 @@
"Delete": "Obriši",
"Max width": "Najveća širina",
"Generate Captions": "Generiraj titlove",
+ "Show advanced actions": "Prikaži napredne radnje",
+ "Show Flip horizontal, Flip vertical, and Reverse in the clip context menu. Keyboard shortcuts (H, J, R) always work.": "Prikaži Preokreni vodoravno, Preokreni okomito i Obrni u kontekstnom izborniku klipa. Tipkovnički prečaci (H, J, R) uvijek rade.",
"Text to Speech": "Tekst u govor",
"Downloads": "Preuzimanja",
"Automatic": "Automatski",
diff --git a/src/crates/concat/locales/it.json b/src/crates/concat/locales/it.json
index 11af4483..f9229e81 100644
--- a/src/crates/concat/locales/it.json
+++ b/src/crates/concat/locales/it.json
@@ -99,6 +99,7 @@
"Content": "Contenuto",
"CONTENTS": "CONTENUTO",
"Contents": "Contenuto",
+ "Context menu": "Menu contestuale",
"Contrast": "Contrasto",
"Contrast Pop": "Contrasto vivo",
"Cool": "Freddo",
@@ -127,6 +128,8 @@
"Delete": "Elimina",
"Max width": "Larghezza massima",
"Generate Captions": "Genera sottotitoli",
+ "Show advanced actions": "Mostra azioni avanzate",
+ "Show Flip horizontal, Flip vertical, and Reverse in the clip context menu. Keyboard shortcuts (H, J, R) always work.": "Mostra Capovolgi orizzontalmente, Capovolgi verticalmente e Inverti nel menu contestuale della clip. Le scorciatoie da tastiera (H, J, R) funzionano sempre.",
"Text to Speech": "Sintesi vocale",
"Downloads": "Download",
"Automatic": "Automatico",
diff --git a/src/crates/concat/locales/ja.json b/src/crates/concat/locales/ja.json
index 14450495..5e7e2152 100644
--- a/src/crates/concat/locales/ja.json
+++ b/src/crates/concat/locales/ja.json
@@ -99,6 +99,7 @@
"Content": "内容",
"CONTENTS": "内容",
"Contents": "内容",
+ "Context menu": "コンテキストメニュー",
"Contrast": "コントラスト",
"Contrast Pop": "コントラストポップ",
"Cool": "クール",
@@ -127,6 +128,8 @@
"Delete": "削除",
"Max width": "最大幅",
"Generate Captions": "字幕を生成",
+ "Show advanced actions": "詳細なアクションを表示",
+ "Show Flip horizontal, Flip vertical, and Reverse in the clip context menu. Keyboard shortcuts (H, J, R) always work.": "クリップのコンテキストメニューに「水平反転」「垂直反転」「逆再生」を表示します。キーボードショートカット(H、J、R)は常に機能します。",
"Text to Speech": "テキスト読み上げ",
"Downloads": "ダウンロード",
"Automatic": "自動",
diff --git a/src/crates/concat/locales/ko.json b/src/crates/concat/locales/ko.json
index 800c9fca..c7d90720 100644
--- a/src/crates/concat/locales/ko.json
+++ b/src/crates/concat/locales/ko.json
@@ -99,6 +99,7 @@
"Content": "내용",
"CONTENTS": "내용",
"Contents": "내용",
+ "Context menu": "컨텍스트 메뉴",
"Contrast": "대비",
"Contrast Pop": "선명한 대비",
"Cool": "차갑게",
@@ -127,6 +128,8 @@
"Delete": "삭제",
"Max width": "최대 너비",
"Generate Captions": "자막 생성",
+ "Show advanced actions": "고급 작업 표시",
+ "Show Flip horizontal, Flip vertical, and Reverse in the clip context menu. Keyboard shortcuts (H, J, R) always work.": "클립 컨텍스트 메뉴에 수평 뒤집기, 수직 뒤집기 및 역재생을 표시합니다. 키보드 단축키(H, J, R)는 항상 작동합니다.",
"Text to Speech": "텍스트 음성 변환",
"Downloads": "다운로드",
"Automatic": "자동",
diff --git a/src/crates/concat/locales/pt-BR.json b/src/crates/concat/locales/pt-BR.json
index ee6ae34d..ac42ff1d 100644
--- a/src/crates/concat/locales/pt-BR.json
+++ b/src/crates/concat/locales/pt-BR.json
@@ -99,6 +99,7 @@
"Content": "Conteúdo",
"CONTENTS": "CONTEÚDO",
"Contents": "Conteúdo",
+ "Context menu": "Menu de contexto",
"Contrast": "Contraste",
"Contrast Pop": "Contraste vivo",
"Cool": "Frio",
@@ -127,6 +128,8 @@
"Delete": "Excluir",
"Max width": "Largura máxima",
"Generate Captions": "Gerar legendas",
+ "Show advanced actions": "Mostrar ações avançadas",
+ "Show Flip horizontal, Flip vertical, and Reverse in the clip context menu. Keyboard shortcuts (H, J, R) always work.": "Mostrar Virar horizontalmente, Virar verticalmente e Inverter no menu de contexto do clipe. Os atalhos de teclado (H, J, R) sempre funcionam.",
"Text to Speech": "Texto para fala",
"Downloads": "Downloads",
"Automatic": "Automático",
diff --git a/src/crates/concat/locales/ru.json b/src/crates/concat/locales/ru.json
index 35148dda..234c10fb 100644
--- a/src/crates/concat/locales/ru.json
+++ b/src/crates/concat/locales/ru.json
@@ -99,6 +99,7 @@
"Content": "Содержание",
"CONTENTS": "СОДЕРЖИМОЕ",
"Contents": "Содержимое",
+ "Context menu": "Контекстное меню",
"Contrast": "Контраст",
"Contrast Pop": "Сочный контраст",
"Cool": "Холодный",
@@ -127,6 +128,8 @@
"Delete": "Удалить",
"Max width": "Максимальная ширина",
"Generate Captions": "Создать субтитры",
+ "Show advanced actions": "Показать расширенные действия",
+ "Show Flip horizontal, Flip vertical, and Reverse in the clip context menu. Keyboard shortcuts (H, J, R) always work.": "Показывать «Отразить по горизонтали», «Отразить по вертикали» и «Реверс» в контекстном меню клипа. Горячие клавиши (H, J, R) всегда работают.",
"Text to Speech": "Озвучить текст",
"Downloads": "Загрузки",
"Automatic": "Автоматически",
diff --git a/src/crates/concat/locales/tr.json b/src/crates/concat/locales/tr.json
index 189f0a1d..bf6527fc 100644
--- a/src/crates/concat/locales/tr.json
+++ b/src/crates/concat/locales/tr.json
@@ -99,6 +99,7 @@
"Content": "İçerik",
"CONTENTS": "İÇERİK",
"Contents": "İçerik",
+ "Context menu": "Bağlam menüsü",
"Contrast": "Kontrast",
"Contrast Pop": "Canlı kontrast",
"Cool": "Soğuk",
@@ -127,6 +128,8 @@
"Delete": "Sil",
"Max width": "En fazla genişlik",
"Generate Captions": "Altyazı oluştur",
+ "Show advanced actions": "Gelişmiş eylemleri göster",
+ "Show Flip horizontal, Flip vertical, and Reverse in the clip context menu. Keyboard shortcuts (H, J, R) always work.": "Klip bağlam menüsünde Yatay çevir, Dikey çevir ve Tersine çevir seçeneklerini göster. Klavye kısayolları (H, J, R) her zaman çalışır.",
"Text to Speech": "Metinden konuşmaya",
"Downloads": "İndirmeler",
"Automatic": "Otomatik",
diff --git a/src/crates/concat/locales/zh-Hans.json b/src/crates/concat/locales/zh-Hans.json
index 0f7e26ab..1000e428 100644
--- a/src/crates/concat/locales/zh-Hans.json
+++ b/src/crates/concat/locales/zh-Hans.json
@@ -99,6 +99,7 @@
"Content": "内容",
"CONTENTS": "内容",
"Contents": "内容",
+ "Context menu": "上下文菜单",
"Contrast": "对比度",
"Contrast Pop": "对比增强",
"Cool": "冷色",
@@ -127,6 +128,8 @@
"Delete": "删除",
"Max width": "最大宽度",
"Generate Captions": "生成字幕",
+ "Show advanced actions": "显示高级操作",
+ "Show Flip horizontal, Flip vertical, and Reverse in the clip context menu. Keyboard shortcuts (H, J, R) always work.": "在剪辑上下文菜单中显示水平翻转、垂直翻转和反转。键盘快捷键(H、J、R)始终有效。",
"Text to Speech": "文本转语音",
"Downloads": "下载",
"Automatic": "自动",
diff --git a/src/crates/concat/locales/zh-TW.json b/src/crates/concat/locales/zh-TW.json
index 860faf7c..4135d910 100644
--- a/src/crates/concat/locales/zh-TW.json
+++ b/src/crates/concat/locales/zh-TW.json
@@ -125,6 +125,7 @@
"Content": "內容",
"CONTENTS": "內容",
"Contents": "內容",
+ "Context menu": "內容功能表",
"Contrast": "對比度",
"Contrast Pop": "強化對比",
"Cool": "冷色調",
@@ -160,6 +161,8 @@
"Delete": "刪除",
"Max width": "最大寬度",
"Generate Captions": "產生字幕",
+ "Show advanced actions": "顯示進階操作",
+ "Show Flip horizontal, Flip vertical, and Reverse in the clip context menu. Keyboard shortcuts (H, J, R) always work.": "在剪輯內容功能表中顯示水平翻轉、垂直翻轉和反向。鍵盤快捷鍵(H、J、R)始終有效。",
"Text to Speech": "文字轉語音",
"Downloads": "下載",
"Automatic": "自動",
diff --git a/src/crates/concat/src/lib.rs b/src/crates/concat/src/lib.rs
index 19db11c1..c39cb5ee 100644
--- a/src/crates/concat/src/lib.rs
+++ b/src/crates/concat/src/lib.rs
@@ -1041,9 +1041,6 @@ pub fn run() -> Result<(), slint::PlatformError> {
state.prefs.custom_context_actions = on;
state.prefs.save(&state.host.dirs);
}));
- app.on_editor_shortcut(on_window!(|state, action: SharedString| {
- state.context_menu_action(action.as_str());
- }));
app.on_settings_download_source_changed(on_window!(|state, index: i32| {
use concat_host::models::SourcePreference;
diff --git a/src/crates/concat/ui/dialogs/settings.slint b/src/crates/concat/ui/dialogs/settings.slint
index 3b8a3d8e..f65666c7 100644
--- a/src/crates/concat/ui/dialogs/settings.slint
+++ b/src/crates/concat/ui/dialogs/settings.slint
@@ -511,6 +511,34 @@ export component SettingsDialog inherits Modal {
}
}
+ // Off, the clip context menu shows only the basics.
+ // On, it also shows Flip horizontal, Flip vertical, and Reverse.
+ DialogSection {
+ title: I18n.t("Context menu");
+ hint: I18n.t("Show Flip horizontal, Flip vertical, and Reverse in the clip context menu. Keyboard shortcuts (H, J, R) always work.");
+
+ HorizontalLayout {
+ spacing: 6px;
+
+ Text {
+ text: I18n.t("Show advanced actions");
+ color: Theme.fg;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ }
+
+ Rectangle { horizontal-stretch: 1; }
+
+ VerticalLayout {
+ alignment: center;
+ Switch {
+ checked: root.data.custom-context-actions;
+ toggled(on) => { root.custom-context-actions-changed(on); }
+ }
+ }
+ }
+ }
+
// The models are open weights from elsewhere, mirrored so
// they stay reachable; where a download looks first is a
// matter of where you are. Every source is still tried.