feat: $ skills mention
This commit is contained in:
1 parent
46aa54b7dc
commit
f7c5965a70
8 files changed
+228
-4
No files matched your search
@@ -390,7 +390,7 @@
|
||||
|
||||
let command = '';
|
||||
export let showCommands = false;
|
||||
$: showCommands = ['/', '#', '@'].includes(command?.charAt(0)) || '\\#' === command?.slice(0, 2);
|
||||
$: showCommands = ['/', '#', '@', '$'].includes(command?.charAt(0)) || '\\#' === command?.slice(0, 2);
|
||||
let suggestions = null;
|
||||
|
||||
let showTools = false;
|
||||
@@ -946,6 +946,18 @@
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
{
|
||||
char: '$',
|
||||
render: getSuggestionRenderer(CommandSuggestionList, {
|
||||
i18n,
|
||||
onSelect: (e) => {
|
||||
document.getElementById('chat-input')?.focus();
|
||||
},
|
||||
|
||||
insertTextHandler: insertTextAtCursor,
|
||||
onUpload: () => {}
|
||||
})
|
||||
}
|
||||
];
|
||||
loaded = true;
|
||||
|
||||
Reference in new issue
Block a user