enh: shortcode emojis

This commit is contained in:
Timothy Jaeryang Baek
2026-03-29 19:01:50 -05:00
parent 2388dd7dc3
commit 2040095050
4 changed files with 155 additions and 1 deletions
@@ -3,6 +3,7 @@
import Knowledge from './Commands/Knowledge.svelte';
import Models from './Commands/Models.svelte';
import Skills from './Commands/Skills.svelte';
import Emojis from './Commands/Emojis.svelte';
export let char = '';
export let query = '';
@@ -135,6 +136,22 @@
}
}}
/>
{:else if char === ':'}
<Emojis
bind:this={suggestionElement}
{query}
bind:filteredItems
onSelect={(e) => {
const { type, data } = e;
if (type === 'emoji') {
command({
id: data.name,
label: data.shortCodes[0]
});
}
}}
/>
{/if}
</div>
</div>