Skip to content

Commit 67f7bab

Browse files
committed
address PR comments
1 parent 8d1586a commit 67f7bab

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

apps/obsidian/src/components/GeneralSettings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ const GeneralSettings = () => {
195195
plugin.settings.nodesFolderPath = nodesFolderPath;
196196
plugin.settings.canvasFolderPath = canvasFolderPath;
197197
plugin.settings.canvasAttachmentsFolderPath = canvasAttachmentsFolderPath;
198-
plugin.settings.nodeTagHotkey = nodeTagHotkey || "\\";
198+
plugin.settings.nodeTagHotkey = nodeTagHotkey || "";
199199
await plugin.saveSettings();
200200
new Notice("General settings saved");
201201
setHasUnsavedChanges(false);

apps/obsidian/src/components/NodeTagSuggestModal.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { App, Editor } from "obsidian";
1+
import { Editor } from "obsidian";
22
import { DiscourseNode } from "~/types";
33

44
type NodeTagItem = {
@@ -16,7 +16,6 @@ export class NodeTagSuggestPopover {
1616
constructor(
1717
private editor: Editor,
1818
private nodeTypes: DiscourseNode[],
19-
private app: App,
2019
) {
2120
this.initializeItems();
2221
}
@@ -171,7 +170,7 @@ export class NodeTagSuggestPopover {
171170
itemEl.appendChild(textContainer);
172171

173172
itemEl.addEventListener("mousedown", (e) => {
174-
e.preventDefault();
173+
e.preventDefault();
175174
e.stopPropagation();
176175
this.selectItem(item);
177176
});

apps/obsidian/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ export default class DiscourseGraphPlugin extends Plugin {
212212
const popover = new NodeTagSuggestPopover(
213213
activeView.editor,
214214
this.settings.nodeTypes,
215-
this.app,
216215
);
217216
popover.open();
218217
}

0 commit comments

Comments
 (0)