fix(ui): replace stale command abbreviations in autocomplete messages

This commit is contained in:
Will Miao
2026-08-21 09:20:11 +08:00
parent cb4fd3a0e6
commit bd380bc1a1
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -2893,14 +2893,14 @@ class AutoComplete {
summary: command.feedbackSummary || (enabled ? 'Autocomplete Enabled' : 'Autocomplete Disabled'),
detail: command.feedbackDetail || (enabled
? 'Tag autocomplete is now ON. Type to see suggestions.'
: 'Tag autocomplete is now OFF. Use /ac to re-enable.'),
: 'Tag autocomplete is now OFF. Use /autocomplete to re-enable.'),
life: 3000
});
}
/**
* Clear the current command token from input
* Preserves leading spaces after delimiters (e.g., "1girl, /ac" -> "1girl, ")
* Preserves leading spaces after delimiters (e.g., "1girl, /emb" -> "1girl, ")
*/
_clearCurrentToken() {
const currentValue = this.inputElement.value;
@@ -2909,7 +2909,7 @@ class AutoComplete {
const lastSegment = activeRange.rawText;
// Find the command start position, preserving leading spaces
// lastSegment includes leading spaces (e.g., " /ac"), find where command actually starts
// lastSegment includes leading spaces (e.g., " /emb"), find where command actually starts
const commandMatch = lastSegment.match(/^(\s*)(\/\w+)/);
if (commandMatch) {
// commandMatch[1] is leading spaces, commandMatch[2] is the command
+1 -1
View File
@@ -430,7 +430,7 @@ app.registerExtension({
name: "Search LoRA autocomplete within active filters",
type: "boolean",
defaultValue: LORA_ACTIVE_FILTERS_AUTOCOMPLETE_DEFAULT,
tooltip: "When enabled, LoRA autocomplete suggestions respect the active filters (folder/base model/tags) set in the LoRA Manager page. Commands /af and /noaf toggle this mode.",
tooltip: "When enabled, LoRA autocomplete suggestions respect the active filters (folder/base model/tags) set in the LoRA Manager page. Commands /activefilters and /noactivefilters toggle this mode.",
category: ["LoRA Manager", "Autocomplete", "LoRA Active Filters"],
},
{