Repository navigation
Add App Drawer: the Dock, most or recently used apps, or a deck of keys - #29
Open
masonjmiller wants to merge 3 commits into
Open
masonjmiller wants to merge 3 commits into
masonjmiller wants to merge 3 commits into
Conversation
A built-in widget for starting things from the dashboard: a copy of the Dock with running apps, the apps used most or most recently, or a deck of keys set up like a Stream Deck. It replaces the App Drawer plugin and the helper app that plugin needed, since everything the helper did can be done in EdgeControl itself. Keys open an app, run a Shortcut, open a link or a file, copy text or type it into the app in front, press a keyboard shortcut or a media key, do several of those in a row, or open a folder of more keys. Holding a key for half a second runs a second action. Hotkeys, media keys and typing post keyboard events, which needs Accessibility: EdgeControl asks the first time, and the tile, the picker and the editor say when it's missing. The events reach the app being worked in, since a tap on the dashboard doesn't bring EdgeControl forward; if it's in front anyway, the app used before it comes back first. Decks are edited on the tile, with the pencil and the tile's own keyboard (tabs for the deck's keys, apps, running apps, Shortcuts, and common hotkeys, media keys, links, text and folders), or in a deck editor window on the Mac, opened from the widget's settings: titles, colors, SF Symbols, emoji or pictures, a hotkey recorder, multi-actions and hold actions. Decks live in Decks.json, in the same format the plugin's helper wrote, so its decks come in on first use; a cloud folder it was pointed at is adopted, so syncing carries on. The file can live on this Mac or in a folder iCloud Drive, Google Drive, Dropbox or OneDrive syncs, and another Mac's changes are merged deck by deck, newest winning. Keys are checked before anything acts on them: capped strings, at most 500 keys, folders four deep, multi-actions of at most 20 steps and no nesting, and pictures only from the decks folder. Fields a newer version adds are kept. Usage history starts from Spotlight's last-used dates and use counts and adds the time each app spends in front, fading with a 14-day half-life. It stays on this Mac. The tile follows the theme: keys take the macOS app icon's shape (Apple's continuous-corner rectangle at a 26.15% radius), app icons are drawn so their artwork matches a key's size, and keys without their own color take the accent, dimmed or full, with ink chosen for contrast. Plain, Cards, Dividers and Keys styles. Rows in the picker's scrolling list register only the part of themselves the list shows as touch zones, so a row scrolled out of the tile can't take a tap meant for the widget beside it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bounce was a repeating animation, and SwiftUI adds a later animation to one that repeats forever instead of replacing it, so it never stopped. It's now worked out from the clock and simply stops. It ends once the app has finished launching, after one bounce at least, and at 8 seconds at most. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dragging a key showed the copy badge, as if it were being added, because a plain drop destination always copies. The grid now has its own drop handling: the pointer carries the key itself, the drag is a move, and an accent bar in the gap shows where the key will go before you let go. The left half of a key puts it before; the right half, after. Each key's cell reaches into the gaps, so the bar doesn't flicker between keys, and no bar shows where letting go wouldn't change anything. The move follows the order the keys are shown in, so a deck sorted by name or use keeps that arrangement with the one change, instead of jumping back to the order the keys were added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds App Drawer, a built-in widget for starting things from the dashboard: a copy of the Dock with running apps, the apps used most or most recently, or a deck of keys set up like a Stream Deck.
Why
The XENEON EDGE sits under the main display, which makes it a natural launcher. App Drawer started as a plugin, but plugins can't list, launch or watch apps, so it needed a helper app installed beside it. Everything that helper did fits in EdgeControl itself, so this brings it in: nothing extra to install.
How
Modes: Dock (the Dock's apps, a divider, then running apps that aren't in it), Most used, Recently used, and Deck.
Keys can:
obsidian://) or a file;Holding a key for half a second runs a second action.
Editing on the dashboard: the pencil opens tabs for the deck's keys, apps, running apps, Shortcuts, and common hotkeys, media keys, links, text and folders. It has search and its own on-screen keyboard. Rows in its scrolling list register as touch zones only the part the list shows, so a row scrolled out of the tile can't take a tap meant for the widget next to it.
Editing on the Mac: Edit Decks… in the widget's settings opens a deck editor window, which keeps itself off the dashboard's display. It covers titles, colors, SF Symbols, emoji, pictures or another app's icon, a hotkey recorder, multi-actions and hold actions, with drag to reorder: the dragged key follows the pointer, and a bar marks where it will land before you let go.
Looks:
Decks live in
Decks.json, on this Mac or in a folder iCloud Drive, Google Drive, Dropbox or OneDrive already syncs. Another Mac pointed at the same folder shares them, merged deck by deck with the newest winning, and nothing to sign up for.Usage history starts from Spotlight's last-used dates and use counts, then adds time in front, fading with a 14-day half-life. It stays on the Mac.
Accessibility is needed only for keys that press shortcuts, press media keys or type. EdgeControl asks the first time one is used, and the tile, the picker and the editor say when it's missing. Keyboard events reach the app being worked in, since a tap on the dashboard doesn't bring EdgeControl forward. If EdgeControl is in front anyway, the app used before it comes back first.
Code:
Services/AppDrawer/holds the model, the store, the catalog, the runner andAppDrawerService(ServiceKey.appDrawer).Widgets/AppDrawer/holds the widget, the picker, the keyboard and the deck editor. There's one new config field type,.appDrawerDecks, for the Edit Decks… button. The README lists the widget and the Accessibility permission.Screenshots
On a XENEON EDGE, in Deck mode:
The widget's settings, and the deck editor with its app chooser:
Testing
Scripts/ci-local.sh allpasses: swift-format lint, zero compiler warnings, and 423 Swift Testing tests in 40 suites. Twenty-seven are new, inTests/EdgeControlTests/AppDrawer/:Checklist
🤖 Generated with Claude Code