Command Menu This is the command menu. Use the arrow keys to navigate and press ⌘K to open the search bar. { searchValue = e.currentTarget.value; }} /> No results found. {#if urlMatchingCards.length > 0} Add from link {#each urlMatchingCards as cardDef (cardDef.type)} { selectUrl(cardDef); }} class="rounded-button data-selected:bg-accent-500/10 flex h-10 cursor-pointer items-center gap-2 rounded-xl px-3 py-2.5 text-sm outline-hidden select-none" > {#if cardDef.icon}
{@html cardDef.icon}
{/if} {cardDef.name}
{/each}
{/if} {#each CardDefGroups as group, index (group)} {#if group && AllCardDefinitions.some((cardDef) => cardDef.groups?.includes(group))} {group} {#each AllCardDefinitions.filter( (cardDef) => cardDef.groups?.includes(group) ) as cardDef (cardDef.type)} { open = false; searchValue = ''; onselect(cardDef); }} class="rounded-button data-selected:bg-accent-500/10 flex h-10 cursor-pointer items-center gap-2 rounded-xl px-3 py-2.5 text-sm outline-hidden select-none" keywords={[group, cardDef.type, ...(cardDef.keywords || [])]} > {#if cardDef.icon}
{@html cardDef.icon}
{/if} {cardDef.name}
{/each}
{#if index < CardDefGroups.length - 1} {/if} {/if} {/each}