Example
defineAction({
id: "Pages",
title: "Pages",
shortcut: "$mod+g",
})
for(const {page, url} of pages){
defineAction({
parentActionId: "Pages",
id: page,
title: page,
run: (() => {window.location.href = url}),
})
}
Expected
Pressing ctrl + g will show the command palette, immediately loading the Pages list.
Actual
Pressing ctrl + g does not show the command palette.
The Pages list is loaded, but it is not visible until the command palette is toggled with ctrl + k.