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(ui): a Kbd primitive, and the timeline shortcuts shown as keycaps
Jareerdddd776a5526
diff --git a/src/crates/concat/locales/de.json b/src/crates/concat/locales/de.jsonindex df108e98..c19019f2 100644--- a/src/crates/concat/locales/de.json+++ b/src/crates/concat/locales/de.json@@ -129,7 +129,6 @@"Delete": "Löschen","Generate Captions": "Untertitel erzeugen","Enable flip and reverse shortcuts": "Enable flip and reverse shortcuts",- "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.": "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.","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.jsonindex b0316732..5b8ad3b0 100644--- a/src/crates/concat/locales/en.json+++ b/src/crates/concat/locales/en.json@@ -257,7 +257,9 @@"Flat bands of colour with inked edges, like a printed comic.": "Flat bands of colour with inked edges, like a printed comic.","Flat bands of colour, like a screen print.": "Flat bands of colour, like a screen print.","Flip horizontal": "Flip horizontal",+ "Flip horizontally": "Flip horizontally","Flip vertical": "Flip vertical",+ "Flip vertically": "Flip vertically","Folder": "Folder","Font": "Font","Font Weight": "Font Weight",@@ -284,7 +286,6 @@"Green": "Green","Green Screen": "Green Screen","Greens": "Greens",- "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.": "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.","Half": "Half","Half the size": "Half the size","Hall": "Hall",@@ -435,6 +436,7 @@"Off": "Off","off": "off","Off, a click on the ruler past the last clip lands the playhead there, and a clip placed at the playhead goes with it. On, the playhead never leaves the content.": "Off, a click on the ruler past the last clip lands the playhead there, and a clip placed at the playhead goes with it. On, the playhead never leaves the content.",+ "Off, the keys do nothing.": "Off, the keys do nothing.","On, deleting a clip pulls what follows it on the same track into the gap, and trimming an edge moves the rest of the track with it. Off, a delete leaves a gap and a trim moves only the edge. Shift-Delete closes the gap either way.": "On, deleting a clip pulls what follows it on the same track into the gap, and trimming an edge moves the rest of the track with it. Off, a delete leaves a gap and a trim moves only the edge. Shift-Delete closes the gap either way.","On, video decodes on this machine's own hardware, which is what makes 4K play on a laptop. A file the hardware will not take decodes in software as before.": "On, video decodes on this machine's own hardware, which is what makes 4K play on a laptop. A file the hardware will not take decodes in software as before.","One repeat, fading.": "One repeat, fading.",diff --git a/src/crates/concat/locales/es.json b/src/crates/concat/locales/es.jsonindex cef886c4..c84ac8e2 100644--- a/src/crates/concat/locales/es.json+++ b/src/crates/concat/locales/es.json@@ -129,7 +129,6 @@"Delete": "Eliminar","Generate Captions": "Generar subtítulos","Enable flip and reverse shortcuts": "Enable flip and reverse shortcuts",- "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.": "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.","Text to Speech": "Texto a voz","Downloads": "Descargas","Automatic": "Automático",diff --git a/src/crates/concat/locales/fa.json b/src/crates/concat/locales/fa.jsonindex 05a8f695..7123b7ad 100644--- a/src/crates/concat/locales/fa.json+++ b/src/crates/concat/locales/fa.json@@ -281,7 +281,6 @@"Green": "سبز","Green Screen": "پرده سبز","Greens": "سبزها",- "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.": "کلید H، کلیپ انتخابشده را افقی برگرداندن میکند، J آن را عمودی برگرداندن میکند و R آن را معکوس میکند. وقتی خاموش باشد، این کلیدها کاری انجام نمیدهند.","Half": "نصف","Half the size": "نصف اندازه","Hall": "سالن",diff --git a/src/crates/concat/locales/fr.json b/src/crates/concat/locales/fr.jsonindex 4cfb8fe0..9be087e6 100644--- a/src/crates/concat/locales/fr.json+++ b/src/crates/concat/locales/fr.json@@ -129,7 +129,6 @@"Delete": "Supprimer","Generate Captions": "Générer les sous-titres","Enable flip and reverse shortcuts": "Enable flip and reverse shortcuts",- "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.": "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.","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.jsonindex 98ea356e..a9636372 100644--- a/src/crates/concat/locales/hr.json+++ b/src/crates/concat/locales/hr.json@@ -162,7 +162,6 @@"Delete": "Obriši","Generate Captions": "Generiraj titlove","Enable flip and reverse shortcuts": "Omogući prečake za okretanje i obrtanje",- "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.": "H okrene odabrani klip vodoravno, J okomito, R obrne smjer. Isključeno, tipke ne 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.jsonindex 92b0cdd7..7227ba00 100644--- a/src/crates/concat/locales/it.json+++ b/src/crates/concat/locales/it.json@@ -129,7 +129,6 @@"Delete": "Elimina","Generate Captions": "Genera sottotitoli","Enable flip and reverse shortcuts": "Enable flip and reverse shortcuts",- "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.": "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.","Text to Speech": "Sintesi vocale","Downloads": "Download","Automatic": "Automatico",diff --git a/src/crates/concat/locales/ja.json b/src/crates/concat/locales/ja.jsonindex a1d9de94..17616021 100644--- a/src/crates/concat/locales/ja.json+++ b/src/crates/concat/locales/ja.json@@ -129,7 +129,6 @@"Delete": "削除","Generate Captions": "字幕を生成","Enable flip and reverse shortcuts": "Enable flip and reverse shortcuts",- "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.": "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.","Text to Speech": "テキスト読み上げ","Downloads": "ダウンロード","Automatic": "自動",diff --git a/src/crates/concat/locales/ko.json b/src/crates/concat/locales/ko.jsonindex fd01e3df..a5a954f2 100644--- a/src/crates/concat/locales/ko.json+++ b/src/crates/concat/locales/ko.json@@ -129,7 +129,6 @@"Delete": "삭제","Generate Captions": "자막 생성","Enable flip and reverse shortcuts": "Enable flip and reverse shortcuts",- "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.": "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.","Text to Speech": "텍스트 음성 변환","Downloads": "다운로드","Automatic": "자동",diff --git a/src/crates/concat/locales/pt-BR.json b/src/crates/concat/locales/pt-BR.jsonindex c6fb93af..24217da3 100644--- a/src/crates/concat/locales/pt-BR.json+++ b/src/crates/concat/locales/pt-BR.json@@ -129,7 +129,6 @@"Delete": "Excluir","Generate Captions": "Gerar legendas","Enable flip and reverse shortcuts": "Enable flip and reverse shortcuts",- "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.": "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.","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.jsonindex 0fe18104..aa9bd3dd 100644--- a/src/crates/concat/locales/ru.json+++ b/src/crates/concat/locales/ru.json@@ -129,7 +129,6 @@"Delete": "Удалить","Generate Captions": "Создать субтитры","Enable flip and reverse shortcuts": "Enable flip and reverse shortcuts",- "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.": "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.","Text to Speech": "Озвучить текст","Downloads": "Загрузки","Automatic": "Автоматически",diff --git a/src/crates/concat/locales/tr.json b/src/crates/concat/locales/tr.jsonindex cce2fdff..5516addf 100644--- a/src/crates/concat/locales/tr.json+++ b/src/crates/concat/locales/tr.json@@ -129,7 +129,6 @@"Delete": "Sil","Generate Captions": "Altyazı oluştur","Enable flip and reverse shortcuts": "Enable flip and reverse shortcuts",- "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.": "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.","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.jsonindex c9b4360a..210f7510 100644--- a/src/crates/concat/locales/zh-Hans.json+++ b/src/crates/concat/locales/zh-Hans.json@@ -129,7 +129,6 @@"Delete": "删除","Generate Captions": "生成字幕","Enable flip and reverse shortcuts": "Enable flip and reverse shortcuts",- "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.": "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.","Text to Speech": "文本转语音","Downloads": "下载","Automatic": "自动",diff --git a/src/crates/concat/locales/zh-TW.json b/src/crates/concat/locales/zh-TW.jsonindex f42283d4..da52586f 100644--- a/src/crates/concat/locales/zh-TW.json+++ b/src/crates/concat/locales/zh-TW.json@@ -162,7 +162,6 @@"Delete": "刪除","Generate Captions": "產生字幕","Enable flip and reverse shortcuts": "Enable flip and reverse shortcuts",- "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.": "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.","Text to Speech": "文字轉語音","Downloads": "下載","Automatic": "自動",diff --git a/src/crates/concat/ui/dialogs/settings.slint b/src/crates/concat/ui/dialogs/settings.slintindex 4c9da927..f36b0ae5 100644--- a/src/crates/concat/ui/dialogs/settings.slint+++ b/src/crates/concat/ui/dialogs/settings.slint@@ -4,6 +4,7 @@import { I18n } from "../i18n.slint";import { Theme } from "../theme/theme.slint";import { NumberField } from "../primitives/number-field.slint";+import { Kbd } from "../primitives/kbd.slint";import { Glyph, Icon } from "../icons.slint";import { Button, DialogRow, DialogSection, Field, Modal, Progress } from "../primitives/modal.slint";import { IconButton } from "../primitives/panel.slint";@@ -44,6 +45,26 @@ export struct SystemFactData {value: string,}+// A key and what it does, for a row of shortcuts.+component Shortcut inherits HorizontalLayout {+ in property <string> key;+ in property <string> label;++ spacing: 6px;+ alignment: start;++ VerticalLayout {+ alignment: center;+ Kbd { key: root.key; }+ }+ Text {+ text: root.label;+ color: Theme.fg-muted;+ font-size: Theme.fs;+ vertical-alignment: center;+ }+}+export struct SettingsData {open: bool,/// 0 General, 1 Appearance, 2 Transcriber, 3 Speech, 4 Remote, 5 About@@ -558,7 +579,17 @@ export component SettingsDialog inherits Modal {// On, it also shows Flip horizontal, Flip vertical, and Reverse.DialogSection {title: I18n.t("Timeline shortcuts");- hint: I18n.t("H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.");+ hint: I18n.t("Off, the keys do nothing.");++ // The three keys, each as a keycap beside what it does.+ HorizontalLayout {+ spacing: 16px;+ alignment: start;++ Shortcut { key: "H"; label: I18n.t("Flip horizontally"); }+ Shortcut { key: "J"; label: I18n.t("Flip vertically"); }+ Shortcut { key: "R"; label: I18n.t("Reverse"); }+ }HorizontalLayout {spacing: 6px;diff --git a/src/crates/concat/ui/primitives/kbd.slint b/src/crates/concat/ui/primitives/kbd.slintnew file mode 100644index 00000000..e7f703fc--- /dev/null+++ b/src/crates/concat/ui/primitives/kbd.slint@@ -0,0 +1,42 @@+// SPDX-License-Identifier: AGPL-3.0-or-later+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors++import { Theme } from "../theme/theme.slint";++// A key, drawn as the cap on a keyboard: a small raised chip with a+// heavier bottom edge, the key's name in the technical face. For text+// that names a shortcut - "press H" - so the key reads as a key and not+// as a letter that happens to be capitalised. Wide enough for a word+// ("Shift", "⌘B") and never narrower than it is tall.+export component Kbd inherits Rectangle {+ in property <string> key;++ width: Math.max(self.height, label.preferred-width + 12px);+ height: 20px;+ border-radius: Theme.r-xs;+ background: Theme.field;+ border-width: 1px;+ border-color: Theme.line-strong;++ // The cap's lip: a second line under the first, one pixel in.+ Rectangle {+ x: 1px;+ y: parent.height - 3px;+ width: parent.width - 2px;+ height: 2px;+ background: Theme.line-strong;+ border-bottom-left-radius: Theme.r-xs - 1px;+ border-bottom-right-radius: Theme.r-xs - 1px;+ }++ label := Text {+ x: (parent.width - self.width) / 2;+ y: (parent.height - self.height) / 2 - 1px;+ text: root.key;+ color: Theme.fg;+ font-family: Theme.font-technical;+ font-size: Theme.fs-sm;+ horizontal-alignment: center;+ vertical-alignment: center;+ }+}diff --git a/src/crates/concat/ui/primitives/primitives.slint b/src/crates/concat/ui/primitives/primitives.slintindex ee3cbe83..69936ed2 100644--- a/src/crates/concat/ui/primitives/primitives.slint+++ b/src/crates/concat/ui/primitives/primitives.slint@@ -14,6 +14,7 @@ export { FocusRing } from "focus-ring.slint";export { ContextMenu, MenuItemData, MenuMetrics, MenuRow } from "context-menu.slint";export { Modal, Button, Progress, DialogSection, DialogRow, Field } from "modal.slint";export { ThinScrollbar } from "scrollbar.slint";+export { Kbd } from "kbd.slint";export { Glyph, Icon } from "../icons.slint";export { Theme } from "../theme/theme.slint";export { Fmt, Curves, Focus, Geom, Bezier, Payload } from "../util.slint";