mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-18 18:04:28 +08:00
完善卡片上标签显示逻辑的算法
This commit is contained in:
9
src/js/options/textDisplayRules.js
Normal file
9
src/js/options/textDisplayRules.js
Normal file
@@ -0,0 +1,9 @@
|
||||
export const textDisplayRules = {
|
||||
string: (cmd) => cmd,
|
||||
window: (cmd, isTooltip) => isTooltip ? cmd.match.app.join(", ") : cmd.match.app[0],
|
||||
files: (cmd) => cmd.match || (cmd.fileType === "directory" ? "所有文件夹" : "所有文件"),
|
||||
regex: (cmd) => cmd.match,
|
||||
over: () => "所有文本",
|
||||
img: () => "图片",
|
||||
add: (cmd) => cmd.count,
|
||||
};
|
||||
Reference in New Issue
Block a user