{#if filteredDocs.length > 0 || prompt.split(' ')?.at(0)?.substring(1).startsWith('http')}
#
{#each filteredDocs as doc, docIdx}
{ console.log(doc); confirmSelect(doc); }} on:mousemove={() => { selectedIdx = docIdx; }} on:focus={() => {}} >
#{doc.name} ({doc.filename})
{doc.title}
{/each} {#if prompt.split(' ')?.at(0)?.substring(1).startsWith('http')}
{ const url = prompt.split(' ')?.at(0)?.substring(1); if (isValidHttpUrl(url)) { confirmSelectWeb(url); } }} >
{prompt.split(' ')?.at(0)?.substring(1)}
Web
{/if}
{/if}