Remove plugin id from command ids

This commit is contained in:
Logan Yang 2023-04-18 11:28:11 -07:00
parent 946b4bfa38
commit a4eb6d686d

View file

@ -32,7 +32,7 @@ export default class CopilotPlugin extends Plugin {
);
this.addCommand({
id: 'copilot-chat-toggle-window',
id: 'chat-toggle-window',
name: 'Toggle Copilot Chat Window',
callback: () => {
this.toggleView();
@ -44,7 +44,7 @@ export default class CopilotPlugin extends Plugin {
});
this.addCommand({
id: 'copilot-simplify-prompt',
id: 'simplify-prompt',
name: 'Simplify selection',
editorCallback: (editor: Editor) => {
this.processSelection(editor, 'simplifySelection');
@ -52,7 +52,7 @@ export default class CopilotPlugin extends Plugin {
});
this.addCommand({
id: 'copilot-emojify-prompt',
id: 'emojify-prompt',
name: 'Emojify selection',
editorCallback: (editor: Editor) => {
this.processSelection(editor, 'emojifySelection');