We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 772bbce commit a2378fbCopy full SHA for a2378fb
apps/obsidian/src/utils/registerCommands.ts
@@ -31,6 +31,25 @@ export const registerCommands = (plugin: DiscourseGraphPlugin) => {
31
},
32
});
33
34
+ plugin.addCommand({
35
+ id: "create-discourse-node",
36
+ name: "Create Discourse Node",
37
+ editorCallback: (editor: Editor) => {
38
+ new CreateNodeModal(plugin.app, {
39
+ nodeTypes: plugin.settings.nodeTypes,
40
+ plugin,
41
+ onNodeCreate: async (nodeType, title) => {
42
+ await createDiscourseNode({
43
44
+ nodeType,
45
+ text: title,
46
+ editor,
47
+ });
48
+ },
49
+ }).open();
50
51
52
+
53
plugin.addCommand({
54
id: "toggle-discourse-context",
55
name: "Toggle Discourse Context",
0 commit comments