mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-17 11:56:57 +08:00
72 lines
1.7 KiB
JavaScript
72 lines
1.7 KiB
JavaScript
export const fileCommands = {
|
|
label: "文件操作",
|
|
icon: "folder_open",
|
|
defaultOpened: true,
|
|
commands: [
|
|
{
|
|
value: "quickcomposer.file.operation",
|
|
label: "文件/文件夹操作",
|
|
component: "FileOperationEditor",
|
|
desc: "文件和文件夹的读写、删除、重命名等操作",
|
|
isAsync: true,
|
|
},
|
|
{
|
|
value: "utools.shellOpenItem",
|
|
label: "默认程序打开",
|
|
config: [
|
|
{
|
|
key: "path",
|
|
label: "文件、文件夹或软件的绝对路径",
|
|
type: "varInput",
|
|
icon: "folder_open",
|
|
options: {
|
|
dialog: {
|
|
type: "open",
|
|
options: {},
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
{
|
|
value: "utools.shellShowItemInFolder",
|
|
label: "文件管理器中显示",
|
|
config: [
|
|
{
|
|
key: "path",
|
|
label: "文件、文件夹或软件的绝对路径",
|
|
type: "varInput",
|
|
icon: "location_on",
|
|
options: {
|
|
dialog: {
|
|
type: "open",
|
|
options: {},
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
{
|
|
value: "utools.getFileIcon",
|
|
label: "获取文件图标",
|
|
config: [
|
|
{
|
|
key: "path",
|
|
label: "文件或软件的绝对路径",
|
|
type: "varInput",
|
|
icon: "folder_open",
|
|
options: {
|
|
dialog: {
|
|
type: "open",
|
|
options: {
|
|
filters: [{ extensions: ["exe", "app"] }],
|
|
properties: ["openFile", "openDirectory"],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
],
|
|
};
|