mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-08-21 13:01:27 -03:00
fix(ui): replace stale command abbreviations in autocomplete messages
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user