配置文件微调

This commit is contained in:
fofolee 2025-01-17 21:22:21 +08:00
parent 10b67c919a
commit 76f710323e
3 changed files with 14 additions and 17 deletions

View File

@ -1,7 +1,7 @@
export const fileCommands = {
label: "文件操作",
icon: "folder_open",
defaultOpened: true,
defaultOpened: false,
commands: [
{
value: "quickcomposer.file.operation",

View File

@ -18,34 +18,31 @@ import { windowsCommands } from "./windowsCommands";
import { statusCommands } from "./statusCommands";
import { macosCommands } from "./macosCommands";
import { scriptCommands } from "./scriptCommands";
let commands = [
const platformCommands = {
win32: [windowsCommands],
darwin: [macosCommands],
linux: [],
};
export const commandCategories = [
fileCommands,
networkCommands,
systemCommands,
statusCommands,
audioCommands,
imageCommands,
notifyCommands,
utoolsCommands,
...platformCommands[window.processPlatform],
dataCommands,
codingCommands,
controlCommands,
scriptCommands,
uiCommands,
simulateCommands,
statusCommands,
mathCommands,
userdataCommands,
screenCommands,
notifyCommands,
otherCommands,
];
if (window.utools.isWindows()) {
commands.push(windowsCommands);
}
if (window.utools.isMacOS()) {
commands.push(macosCommands);
}
commands.push(otherCommands);
export const commandCategories = commands;

View File

@ -3,7 +3,7 @@ import { newVarInputVal } from "../varInputValManager";
export const networkCommands = {
label: "网络操作",
icon: "language",
defaultOpened: true,
defaultOpened: false,
commands: [
{
value: "utools.shellOpenExternal",