The VS Code of video editing, built for agents.
TypeScript
feat: add icons for clipboard actions and chat functionality in shortcuts and window commands
konstantin-paulus5681fd9bffd3
diff --git a/apps/web/src/assets/icons/ask-chat.svg b/apps/web/src/assets/icons/ask-chat.svgnew file mode 100644index 00000000..dafaf3e0--- /dev/null+++ b/apps/web/src/assets/icons/ask-chat.svg@@ -0,0 +1,3 @@+<svg viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M12.5 15.5H8A1.5 1.5 0 0 1 6.5 14V9A1.5 1.5 0 0 1 8 7.5H17A1.5 1.5 0 0 1 18.5 9V14A1.5 1.5 0 0 1 17 15.5H15.5V18.5L12.5 15.5Z" stroke="currentColor" stroke-linejoin="round"/>+</svg>diff --git a/apps/web/src/assets/icons/copy.svg b/apps/web/src/assets/icons/copy.svgnew file mode 100644index 00000000..e1ea5f32--- /dev/null+++ b/apps/web/src/assets/icons/copy.svg@@ -0,0 +1,4 @@+<svg viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M9.5 15.5H6A0.5 0.5 0 0 1 5.5 15V6A0.5 0.5 0 0 1 6 5.5H15A0.5 0.5 0 0 1 15.5 6V9.5" stroke="currentColor"/>+<rect x="9.5" y="9.5" width="10" height="10" rx="0.5" stroke="currentColor"/>+</svg>diff --git a/apps/web/src/assets/icons/cut.svg b/apps/web/src/assets/icons/cut.svgnew file mode 100644index 00000000..03f39003--- /dev/null+++ b/apps/web/src/assets/icons/cut.svg@@ -0,0 +1,5 @@+<svg viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">+<circle cx="9.5" cy="16.5" r="2" stroke="currentColor"/>+<circle cx="15.5" cy="16.5" r="2" stroke="currentColor"/>+<path d="M10.53 14.79L15.5 6.5M14.47 14.79L9.5 6.5" stroke="currentColor" stroke-linecap="round"/>+</svg>diff --git a/apps/web/src/assets/icons/duplicate.svg b/apps/web/src/assets/icons/duplicate.svgnew file mode 100644index 00000000..570a70f0--- /dev/null+++ b/apps/web/src/assets/icons/duplicate.svg@@ -0,0 +1,5 @@+<svg viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M9.5 15.5H6A0.5 0.5 0 0 1 5.5 15V6A0.5 0.5 0 0 1 6 5.5H15A0.5 0.5 0 0 1 15.5 6V9.5" stroke="currentColor"/>+<rect x="9.5" y="9.5" width="10" height="10" rx="0.5" stroke="currentColor"/>+<path d="M14.5 12V17M12 14.5H17" stroke="currentColor" stroke-linecap="round"/>+</svg>diff --git a/apps/web/src/assets/icons/paste.svg b/apps/web/src/assets/icons/paste.svgnew file mode 100644index 00000000..ab53e167--- /dev/null+++ b/apps/web/src/assets/icons/paste.svg@@ -0,0 +1,4 @@+<svg viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M10.5 6.5H8A0.5 0.5 0 0 0 7.5 7V19A0.5 0.5 0 0 0 8 19.5H17A0.5 0.5 0 0 0 17.5 19V7A0.5 0.5 0 0 0 17 6.5H14.5" stroke="currentColor"/>+<rect x="10.5" y="5.5" width="4" height="3" rx="0.5" stroke="currentColor"/>+</svg>diff --git a/apps/web/src/assets/icons/select-all.svg b/apps/web/src/assets/icons/select-all.svgnew file mode 100644index 00000000..17339d82--- /dev/null+++ b/apps/web/src/assets/icons/select-all.svg@@ -0,0 +1,4 @@+<svg viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M6.5 9.5V6.5H9.5M15.5 6.5H18.5V9.5M18.5 15.5V18.5H15.5M9.5 18.5H6.5V15.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>+<rect x="9.5" y="9.5" width="6" height="6" rx="0.5" stroke="currentColor"/>+</svg>diff --git a/apps/web/src/assets/icons/trash.svg b/apps/web/src/assets/icons/trash.svgnew file mode 100644index 00000000..a4fbb7f8--- /dev/null+++ b/apps/web/src/assets/icons/trash.svg@@ -0,0 +1,3 @@+<svg viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M10.5 6.5H14.5M8.5 8.5H16.5M9.5 8.5V17C9.5 17.2761 9.7239 17.5 10 17.5H15C15.2761 17.5 15.5 17.2761 15.5 17V8.5" stroke="currentColor" stroke-linecap="round"/>+</svg>diff --git a/apps/web/src/components/commands/shortcuts.tsx b/apps/web/src/components/commands/shortcuts.tsxindex 7c09c558..773b458d 100644--- a/apps/web/src/components/commands/shortcuts.tsx+++ b/apps/web/src/components/commands/shortcuts.tsx@@ -61,7 +61,7 @@ type Shortcut = {id: string;title: string;group: Section;- icon?: string;+ icon: string;/** Its keys, one cap each. */keys: string[];keywords?: string[];@@ -313,6 +313,7 @@ const SHORTCUTS: Shortcut[] = [id: "copy",title: "Copy",group: "Edit",+ icon: "copy",keys: ["⌘", "C"],keywords: ["clipboard"],run: copySelection,@@ -322,6 +323,7 @@ const SHORTCUTS: Shortcut[] = [id: "cut",title: "Cut",group: "Edit",+ icon: "cut",keys: ["⌘", "X"],keywords: ["clipboard"],run: cutSelection,@@ -331,6 +333,7 @@ const SHORTCUTS: Shortcut[] = [id: "paste",title: "Paste",group: "Edit",+ icon: "paste",keys: ["⌘", "V"],keywords: ["clipboard"],run: pasteSelection,@@ -340,6 +343,7 @@ const SHORTCUTS: Shortcut[] = [id: "duplicate",title: "Duplicate",group: "Edit",+ icon: "duplicate",keys: ["⌘", "D"],keywords: ["copy", "clone"],run: duplicateSelection,@@ -349,6 +353,7 @@ const SHORTCUTS: Shortcut[] = [id: "delete",title: "Delete",group: "Edit",+ icon: "trash",keys: ["⌫"],keywords: ["remove"],run: deleteSelection,@@ -358,6 +363,7 @@ const SHORTCUTS: Shortcut[] = [id: "select-all",title: "Select all",group: "Edit",+ icon: "select-all",keys: ["⌘", "A"],run: selectAll,},diff --git a/apps/web/src/components/commands/window.tsx b/apps/web/src/components/commands/window.tsxindex 0beef554..e0429dfe 100644--- a/apps/web/src/components/commands/window.tsx+++ b/apps/web/src/components/commands/window.tsx@@ -26,6 +26,7 @@ export function WindowCommands() {id: "open-chat",title: "Open chat",group: "Window",+ icon: "ask-chat",keywords: ["agent", "assistant", "message", "claude"],run: () => {if (!layout.uiVisible()) layout.toggleUI();@@ -40,6 +41,7 @@ export function WindowCommands() {id: "actions",title: "Actions…",group: "Window",+ icon: "tool.actions-spotlight",shortcut: ["⌘", "K"],palette: false,run: () => setPaletteOpen(true),diff --git a/apps/web/src/context/commands.tsx b/apps/web/src/context/commands.tsxindex 89b379e9..3a43ffdc 100644--- a/apps/web/src/context/commands.tsx+++ b/apps/web/src/context/commands.tsx@@ -98,7 +98,8 @@ export type Command = CommandAction & {title: string;/** The palette section it is listed under. */group: Section;- icon?: string;+ /** Shown beside it in the palette. */+ icon: string;/** More words the palette finds it by. */keywords?: string[];/** The keys it is bound to, one cap each (["⌘", "K"]); shown, not bound. */