mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-17 17:24:27 +08:00
编排新增文件/文件夹操作,获取文件图标
This commit is contained in:
@@ -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",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user