launcher: clipboard: delete button

This commit is contained in:
end-4
2025-07-18 12:36:25 +07:00
parent 3311d68262
commit 2cc313855b
3 changed files with 77 additions and 4 deletions
@@ -294,8 +294,17 @@ Item { // Wrapper
clickActionName: "",
type: `#${entry.match(/^\s*(\S+)/)?.[1] || ""}`,
execute: () => {
Quickshell.execDetached(["bash", "-c", `echo '${StringUtils.shellSingleQuoteEscape(entry)}' | cliphist decode | wl-copy`]);
}
Cliphist.copy(entry)
},
actions: [
{
name: "Delete",
icon: "delete",
execute: () => {
Cliphist.deleteEntry(entry);
}
}
]
};
}).filter(Boolean);
}