diff --git a/apps/obsidian/src/utils/registerCommands.ts b/apps/obsidian/src/utils/registerCommands.ts index 9401c1c0b..ccb942278 100644 --- a/apps/obsidian/src/utils/registerCommands.ts +++ b/apps/obsidian/src/utils/registerCommands.ts @@ -61,35 +61,6 @@ export const createModifyNodeModalSubmitHandler = ( }; export const registerCommands = (plugin: DiscourseGraphPlugin) => { - plugin.addCommand({ - id: "open-node-type-menu", - name: "Open node type menu", - editorCallback: (editor: Editor) => { - const hasSelection = !!editor.getSelection(); - - if (hasSelection) { - new NodeTypeModal(plugin, (nodeType: DiscourseNode) => { - void createDiscourseNode({ - plugin, - editor, - nodeType, - text: editor.getSelection().trim() || "", - }); - }).open(); - } else { - const currentFile = - plugin.app.workspace.getActiveViewOfType(MarkdownView)?.file || - undefined; - new ModifyNodeModal(plugin.app, { - nodeTypes: plugin.settings.nodeTypes, - plugin, - currentFile, - onSubmit: createModifyNodeModalSubmitHandler(plugin, editor), - }).open(); - } - }, - }); - plugin.addCommand({ id: "create-discourse-node", name: "Create discourse node",