Skip to content

Commit

Permalink
fix: show correct debug console hotkey
Browse files Browse the repository at this point in the history
close #175
  • Loading branch information
Vinzent03 committed Jan 29, 2022
1 parent 64f822f commit 087582e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 6 additions & 2 deletions src/settings.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Notice, PluginSettingTab, Setting } from "obsidian";
import { Notice, Platform, PluginSettingTab, Setting } from "obsidian";
import ObsidianGit from "./main";

export class ObsidianGitSettingsTab extends PluginSettingTab {
Expand Down Expand Up @@ -274,6 +274,10 @@ export class ObsidianGitSettingsTab extends PluginSettingTab {
const keys = containerEl.createDiv();
keys.setAttr("align", "center");
keys.addClass("obsidian-git-shortcuts");
keys.createEl("kbd", { text: "CTRL + SHIFT + I" });
if (Platform.isMacOS === true) {
keys.createEl("kbd", { text: "CMD (⌘) + OPTION (⌥) + I" });
} else {
keys.createEl("kbd", { text: "CTRL + SHIFT + I" });
}
}
}
2 changes: 0 additions & 2 deletions src/ui/sidebar/components/fileComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@
}
function stage() {
console.log("stage");
manager.stage(change.path).then(() => {
dispatchEvent(new CustomEvent("git-refresh"));
});
Expand Down
2 changes: 0 additions & 2 deletions src/ui/sidebar/gitView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@
}
addEventListener("git-refresh", (_) => {
console.log("got");
refresh();
});
Expand Down

0 comments on commit 087582e

Please sign in to comment.