feat: move snippets, keybinding actions and macros out of core into plugins

This commit is contained in:
LukeGus committed 2026-09-29 11:39:14 -05:00
1 parent d9bba10612
commit e0c30a4e6f
262 files changed
+9091 -10744

No files matched your search

+17
View File
@@ -45,6 +45,11 @@ import {
listSettingsComponents,
} from "@/settings/settings-components";
import { getSlotContributions, listActions } from "@/shell/action-registry";
import { listPaletteGroups, loadPaletteGroup } from "@/shell/palette-registry";
import {
listKeybindingActions,
listKeybindingDefaults,
} from "@/shell/keybinding-registry";
import {
getLoginMethodUI,
getSecondFactorUI,
@@ -240,6 +245,18 @@ export async function renderPlugin(
loginMethods: () => mine(listLoginMethodUIs()).map((method) => method.id),
secondFactors: () =>
mine(listSecondFactorUIs()).map((factor) => factor.id),
paletteGroups: () => mine(listPaletteGroups()).map((group) => group.id),
keybindingActions: () =>
mine(listKeybindingActions()).map((action) => action.id),
keybindingDefaults: () =>
mine(listKeybindingDefaults()).map((binding) => binding.id),
},
async loadPaletteGroup(id) {
const group =
listPaletteGroups().find((entry) => entry.id === id) ??
missing("a palette group", id);
return (await loadPaletteGroup(group)) as never;
},
renderTab(type, props = {}) {