Update Commands.svelte

This commit is contained in:
Classic298
2025-06-16 18:45:28 +02:00
committed by GitHub
parent 29de0967d9
commit 6e10c3f37d

View File

@@ -56,7 +56,8 @@
{#if show} {#if show}
{#if !loading} {#if !loading}
{#if command?.charAt(0) === '/'} {#if command?.charAt(0) === '/'}
<Prompts bind:this={commandElement} bind:prompt bind:files {command} /> <Prompts bind:this={commandElement} bind:prompt bind:files {command}
on:promptapplied={(e) => dispatch('promptselectionprocessed', e.detail)} />
{:else if (command?.charAt(0) === '#' && command.startsWith('#') && !command.includes('# ')) || ('\\#' === command.slice(0, 2) && command.startsWith('#') && !command.includes('# '))} {:else if (command?.charAt(0) === '#' && command.startsWith('#') && !command.includes('# ')) || ('\\#' === command.slice(0, 2) && command.startsWith('#') && !command.includes('# '))}
<Knowledge <Knowledge
bind:this={commandElement} bind:this={commandElement}