Skip to content

Commit e81419e

Browse files
committed
fix #247
1 parent d1a20b0 commit e81419e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/obsidian/src/main.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,16 @@ export default class MetaBindPlugin extends Plugin implements IPlugin {
282282
});
283283
},
284284
});
285+
286+
this.addCommand({
287+
id: 'copy-command-id',
288+
name: 'Select and Copy Command ID',
289+
callback: () => {
290+
this.internal.openCommandSelectModal(command => {
291+
void window.navigator.clipboard.writeText(command.id);
292+
});
293+
},
294+
});
285295
}
286296

287297
addStatusBarBuildIndicator(): void {

0 commit comments

Comments
 (0)