编排新增文件/文件夹操作,获取文件图标

This commit is contained in:
fofolee
2025-01-03 15:31:56 +08:00
parent 75b9fdff80
commit dcaa00823b
15 changed files with 1232 additions and 27 deletions

View File

@@ -4,8 +4,15 @@ export const fileCommands = {
defaultOpened: true,
commands: [
{
value: "open",
label: "打开文件/文件夹/软件",
value: "quickcomposer.file.operation",
label: "文件/文件夹操作",
component: "FileOperationEditor",
desc: "文件和文件夹的读写、删除、重命名等操作",
isAsync: true,
},
{
value: "utools.shellOpenItem",
label: "默认程序打开",
config: [
{
key: "path",
@@ -17,8 +24,8 @@ export const fileCommands = {
],
},
{
value: "locate",
label: "文件管理器中定位文件",
value: "utools.shellShowItemInFolder",
label: "文件管理器中显示",
config: [
{
key: "path",
@@ -29,5 +36,18 @@ export const fileCommands = {
},
],
},
{
value: "utools.getFileIcon",
label: "获取文件图标",
config: [
{
key: "path",
label: "文件或软件的绝对路径",
type: "input",
defaultValue: "",
icon: "folder_open",
},
],
},
],
};

View File

@@ -5,7 +5,7 @@ export const networkCommands = {
commands: [
{
value: "visit",
label: "默认浏览器打开网址",
label: "默认浏览器打开网址",
config: [
{
key: "url",
@@ -18,7 +18,7 @@ export const networkCommands = {
},
{
value: "utools.ubrowser.goto",
label: "ubrowser打开网址",
label: "ubrowser打开网址",
config: [
{
key: "url",