mirror of
https://github.com/tuxitop/chessview.git
synced 2026-07-22 06:27:57 +00:00
remove plugin name from command ids
This commit is contained in:
parent
f46a1b6f97
commit
1a02af95a9
1 changed files with 3 additions and 7 deletions
10
src/main.ts
10
src/main.ts
|
|
@ -38,7 +38,7 @@ export default class ChessViewPlugin extends Plugin {
|
|||
this.addSettingTab(new ChessViewSettingTab(this.app, this));
|
||||
|
||||
this.addCommand({
|
||||
id: 'insert-chessview-game',
|
||||
id: 'insert-game',
|
||||
name: 'Insert game',
|
||||
editorCallback: (editor) => {
|
||||
editor.replaceSelection(
|
||||
|
|
@ -48,7 +48,7 @@ export default class ChessViewPlugin extends Plugin {
|
|||
});
|
||||
|
||||
this.addCommand({
|
||||
id: 'insert-chessview-fen',
|
||||
id: 'insert-fen',
|
||||
name: 'Insert position (FEN)',
|
||||
editorCallback: (editor) => {
|
||||
editor.replaceSelection(
|
||||
|
|
@ -58,7 +58,7 @@ export default class ChessViewPlugin extends Plugin {
|
|||
});
|
||||
|
||||
this.addCommand({
|
||||
id: 'insert-chessview-puzzle',
|
||||
id: 'insert-puzzle',
|
||||
name: 'Insert puzzle',
|
||||
editorCallback: (editor) => {
|
||||
editor.replaceSelection(`\`\`\`chessview
|
||||
|
|
@ -74,10 +74,6 @@ export default class ChessViewPlugin extends Plugin {
|
|||
});
|
||||
}
|
||||
|
||||
onunload(): void {
|
||||
// plugin cleanup
|
||||
}
|
||||
|
||||
async loadSettings(): Promise<void> {
|
||||
this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue