Files
mxandClaude Opus 5.5 5a10469efe Add Clipboard History as a launcher mode backed by cliphist
The launcher gains a clipboard mode with the same bar, position and size:
the latest five entries show at once and the rest scroll, search filters
in recency order, Enter copies, Shift+Delete removes an entry. >clipboard
switches in place without closing or animating; glassmxrph clipboard
toggles it directly. History stays with the user's cliphist watcher.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 15:16:14 +02:00

29 lines
938 B
QML

import QtQuick
import "SearchLogic.js" as Search
QtObject {
property string query: ""
property int limit: 50
property bool enabled: false
readonly property var indexed: Search.index(CommandRegistry.commands.map(command => ({
id: command.id,
title: command.title,
description: command.description || "Shell command",
command: true,
kind: command.kind || "Settings",
fields: [
{
text: command.id
},
{
text: command.title
},
{
text: command.description,
penalty: 500
}
]
})))
readonly property var results: enabled ? Search.rank(indexed, query.replace(/^\s*>/, ""), limit) : []
}