Skip to content

Commit 2379435

Browse files
committed
feat: added a new command "Open Plugin Page"
1 parent 0ec637e commit 2379435

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/ace/commands.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,14 @@ const commands = [
287287
settings.update(false);
288288
},
289289
},
290+
{
291+
name: "openPluginsPage",
292+
description: "Open Plugins Page",
293+
exec() {
294+
acode.exec("open", "plugins");
295+
},
296+
readOnly: true,
297+
},
290298
];
291299

292300
export function setCommands(editor) {

src/lib/commands.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import fsOperation from "fileSystem";
77
import actions from "handlers/quickTools";
88
import recents from "lib/recents";
99
import FileBrowser from "pages/fileBrowser";
10+
import plugins from "pages/plugins";
1011
import Problems from "pages/problems/problems";
1112
import changeEncoding from "palettes/changeEncoding";
1213
import changeMode from "palettes/changeMode";
@@ -176,6 +177,10 @@ export default {
176177
Problems();
177178
break;
178179

180+
case "plugins":
181+
plugins();
182+
break;
183+
179184
default:
180185
return;
181186
}

0 commit comments

Comments
 (0)