Skip to content

Commit

Permalink
fix: remove command prefix
Browse files Browse the repository at this point in the history
Obsidian already adds it.
  • Loading branch information
filipesilva committed Feb 5, 2023
1 parent aa2213d commit ee368a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,31 +383,31 @@ export default class BabashkaPlugin extends Plugin {
this.addSettingTab(new SettingTab(this.app, this));

this.addCommand({
id: 'obsidian-babashka-eval-codeblock',
id: 'babashka-eval-codeblock',
name: 'Eval codeblock',
editorCallback: async (editor: Editor, view: MarkdownView) => {
evalAndInsert(this.app, editor, view, this.settings, "inside");
}
});

this.addCommand({
id: 'obsidian-babashka-eval-codeblock-print-outside',
id: 'babashka-eval-codeblock-print-outside',
name: 'Eval codeblock and print value outside',
editorCallback: async (editor: Editor, view: MarkdownView) => {
evalAndInsert(this.app, editor, view, this.settings, "outside");
}
});

this.addCommand({
id: 'obsidian-babashka-start-and-connect-nrepl',
id: 'babashka-start-and-connect-nrepl',
name: 'Start and connect to a nREPL server',
editorCallback: async (editor: Editor, view: MarkdownView) => {
startAndConnectRepl(this.app, editor, view, this.settings, statusBarItemEl);
}
});

this.addCommand({
id: 'obsidian-babashka-kill-all-processes',
id: 'babashka-kill-all-processes',
name: 'Kill all babashka processes',
editorCallback: async (editor: Editor, view: MarkdownView) => {
killAllProcesses();
Expand Down

0 comments on commit ee368a5

Please sign in to comment.