diff --git a/app/page.tsx b/app/page.tsx index b987939..c54c090 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1188,6 +1188,7 @@ export default function Page() { onCommand={handleCommand} isCommandKOpen={isCommandKOpen} setIsCommandKOpen={setIsCommandKOpen} + onUndo={undo} /> diff --git a/components/vim-input.tsx b/components/vim-input.tsx index cd50ecf..89d0c30 100644 --- a/components/vim-input.tsx +++ b/components/vim-input.tsx @@ -15,7 +15,7 @@ const ALL_ACTION_ITEMS = [ { id: "import-nodepad", icon: FolderInput, label: "Import", sub: ".nodepad", pluginOnly: false }, { id: "export-md", icon: Download, label: "Export", sub: "markdown", pluginOnly: true }, { id: "copy-md", icon: Clipboard, label: "Copy", sub: "markdown", pluginOnly: true }, - { id: "synthesis-doc", icon: ScrollText, label: "Synthesis", sub: "document", pluginOnly: false }, + { id: "synthesis-doc", icon: ScrollText, label: "Synthesis", sub: "document", pluginOnly: true }, { id: "clear", icon: Trash2, label: "Clear", sub: "canvas", pluginOnly: true }, ] @@ -27,11 +27,12 @@ interface VimInputProps { isCommandKOpen: boolean setIsCommandKOpen: (open: boolean) => void isPlugin?: boolean + onUndo?: () => void } // ─── Component ─────────────────────────────────────────────────────────────── -export function VimInput({ onSubmit, onCommand, isCommandKOpen, setIsCommandKOpen, isPlugin }: VimInputProps) { +export function VimInput({ onSubmit, onCommand, isCommandKOpen, setIsCommandKOpen, isPlugin, onUndo }: VimInputProps) { const [value, setValue] = React.useState("") const [search, setSearch] = React.useState("") const [focusedIdx, setFocusedIdx] = React.useState(0) @@ -365,23 +366,31 @@ export function VimInput({ onSubmit, onCommand, isCommandKOpen, setIsCommandKOpe
-
+
+
-
+
+