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>
This commit is contained in:
1 parent
44a5aedbb2
commit
5a10469efe
15 files changed
+392
-24
No files matched your search
@@ -18,9 +18,14 @@ Singleton {
|
||||
function close(): void {
|
||||
ShellState.launcherOpen = false;
|
||||
}
|
||||
// Opens Clipboard History, or closes it when it is showing.
|
||||
function clipboard(): void {
|
||||
ShellState.toggleClipboard();
|
||||
}
|
||||
function status(): string {
|
||||
return JSON.stringify({
|
||||
opened: ShellState.launcherOpen,
|
||||
mode: ShellState.launcherMode,
|
||||
screen: root.window && root.window.screen ? root.window.screen.name : "",
|
||||
ready: !!root.window
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user