Repository navigation
Description
Problem
The workspace cells can only appear in alphabetical order. I want them in a custom order, for example the bottom keyboard row Z X C V B N M, and no configuration can do that.
Two things stand in the way:
- StableBar always sorts the snapshot by name.
workspaceSnapshotre-sorts every AeroSpace snapshot withlocalizedStandardCompare(Sources/StableBar/Workspaces/Workspaces.swift:191), so any order coming from the window manager is discarded before the widget draws it. - AeroSpace has no order setting of its own; ordering workspaces is an open request (#1816).
Renaming workspaces is the only lever, and StableBar sorts the names anyway, so it cannot express Z X C V B N M.
StableBar 0.20.0 (Stable, build 1774), AeroSpace 0.21.3-Beta.
Proposal
Add an order list to the workspace configuration, like widgetOrder for widgets:
{
"id": "workspaces",
"type": "workspaces",
"position": "left",
"workspace": { "order": ["Z", "X", "C", "V", "B", "N", "M"] }
}- Listed workspaces come first, in that order.
- Workspaces the list doesn't name keep their current order after the listed ones.
- Names that aren't currently present are skipped, as with
widgetOrder. - Without
order, the current alphabetical behaviour stays.
A widget-level workspace.order would let each kind of screen (or profile) order cells differently, and it plugs into the existing workspace configuration, schema and inspector. A top-level workspaceOrder, parallel to widgetOrder, would also work if a single order is preferred.
This would work with every workspace source and does not depend on AeroSpace changing. If #1816 lands, the source order could also be used as the fallback, but a list is the only thing that works today.
Possible today
No configuration can reorder the cells. The workspace options style, filter and show them (hideApps, hideWorkspaces, showEmpty, showApps, windows, …), but none changes their order, and workspaceSnapshot re-sorts whatever the source returns. Renaming a workspace changes the name shown but ends up in the same alphabetical order.
Activity