Skip to content

Legacy TagComplete

eduardoabreu81 edited this page Jul 24, 2026 · 1 revision

Note

Archived pre-merge history. This document describes sd-webui-tagcomplete-neo as a standalone extension, before it was merged into Prompt Studio Neo at v0.1. Kept for historical reference only β€” for the current, unified extension, see Home.

🏷️ TagComplete Neo

Tag autocompletion for Forge Neo β€” suggests Danbooru/e621 tags, LoRA/embedding names, wildcards, and chants as you type, with automatic trigger word injection and CivitAI lookup support.

Fork of a1111-sd-webui-tagcomplete by DominikDoom, maintained here exclusively for Forge Neo. If you are not running Forge Neo, use the original extension instead.


πŸ†• What's New

v0.2.1 β€” Mobile backspace fix & mid-prompt LoRA keywords

  • Backspace no longer lags on mobile β€” holding the delete key no longer triggers heavy translation handlers, making deletion smooth even on older phones
  • Mid-prompt LoRA keywords fixed β€” when using "After LORA/LyCO" insertion, trigger words now insert correctly even if the LoRA token is in the middle of the prompt (no more overwritten text)
  • Multi-word tag search β€” type any word from a tag with underscores and it will be found (e.g. towards β†’ walking_towards_viewer)

v0.2.0 β€” Smoother typing & mobile support

  • Faster tag suggestions β€” the autocomplete list now appears more quickly, even with large tag databases like the merged Danbooru/e621 list
  • Much smoother typing on mobile β€” typing in the prompt box no longer lags or stutters on phones and tablets
  • Lower input delay β€” reduced waiting time between keystrokes and results appearing on screen
  • Indexed search toggle β€” new setting to switch between fast prefix-indexed mode and legacy full-scan mode ⭐
  • Status indicator β€” a small colored dot in the toolbar shows when the extension is loading (orange), ready (green), or encountered an error (red) ⭐

πŸ“– Changelog

v0.2.1 β€” Mobile backspace fix & mid-prompt LoRA keywords

  • Backspace no longer triggers heavy translation handlers, eliminating lag when holding delete on mobile
  • Fixed "After LORA/LyCO" trigger word insertion corrupting text when the LoRA token is in the middle of the prompt
  • Multi-word tag search β€” type any word from a tag with underscores (e.g. towards β†’ walking_towards_viewer)

v0.2.0 β€” Smoother typing & mobile support

  • Tag search significantly faster thanks to an internal prefix index built on load
  • Input debounce tightened to keep up with fast typists without causing frame drops
  • Reduced DOM and memory churn during dropdown rendering
  • Fixed a mouseover listener leak that could accumulate over long sessions
  • Startup no longer blocks typing β€” the tag index is built in small chunks so the prompt box stays responsive while the extension initializes
  • Extension parsers now load in parallel, cutting startup time from ~43s to ~7s on slower machines
  • Status indicator dot shows loading / ready / error state directly in the Forge Neo toolbar
  • Indexed search can be toggled on/off in Settings β†’ Tag Autocomplete
  • Fixed crash when inserting tags containing apostrophes
  • Fixed broken bold highlight on tags with special characters

v0.1.2 β€” Bug fix batch

  • Embedding manual refresh (tac_forceRefreshEmbeddings) no longer throws TypeError on Forge Neo
  • LoRA list always populated from filesystem scan; lora.available_loras used only for alias enrichment
  • get_embeddings() resolves symlinks before relative_to() β€” no more crash with linked embedding folders
  • transaction() in frequency DB initialises conn = None before try block β€” prevents NameError on failed DB creation

v0.1.1 β€” LoRA alias fix

  • LoRA/LyCORIS completion now inserts the alias Forge Neo expects, eliminating token blink
  • Respects the "Alias from file" / "Filename" setting in Extra Networks

v0.1.0 β€” Forge Neo Baseline

  • Full Forge Neo / Gradio 4 compatibility
  • Booru tags, initialization, and embedding reload fixed
  • CivitAI trigger word lookup with SHA256 cache
  • "After LoRA/LyCO" insertion option

πŸ—ΊοΈ Roadmap (as of the pre-merge fork β€” superseded by Roadmap)

v0.1.2 β€” Bug fix batch βœ…

  • Embedding manual refresh fixed (Forge Neo removed force_reload kwarg) βœ…
  • LoRA list always populated at startup βœ…
  • Symlinked embeddings no longer crash on model load βœ…
  • Frequency database NameError on first run fixed βœ…

v0.1.1 β€” LoRA alias fix βœ…

  • LoRA/LyCORIS token matches Forge Neo's expected alias βœ…

v0.1.0 β€” Forge Neo Baseline βœ…

  • Forge Neo / Gradio 4 compatibility βœ…
  • Booru tag display fixed (Gradio 4 selectors) βœ…
  • Reliable re-initialization after WebUI reconnect βœ…
  • Embedding reload hardened βœ…
  • Extension resilience after Forge updates βœ…
  • CivitAI trigger word lookup with SHA256 cache βœ…
  • "After LoRA/LyCO" insertion option βœ…

v0.2.1 β€” Mobile backspace fix & mid-prompt LoRA keywords βœ…

  • Backspace lag eliminated (updateRuby skipped on delete) βœ…
  • Mid-prompt "After LORA/LyCO" trigger word insertion fixed βœ…
  • Multi-word tag search (any word of a multi-word tag) βœ…

v0.2.0 β€” Smoother typing & mobile support βœ…

  • Prefix-indexed tag search (toggleable) βœ…
  • Tighter debounce and delete-event skipping βœ…
  • DOM batching + deferred rendering βœ…
  • Parallel extension loading (43s β†’ ~7s startup) βœ…
  • Status indicator dot in toolbar βœ…
  • Apostrophe crash and highlight fixes βœ…
  • Mobile typing no longer lags or stutters βœ…

(Everything planned beyond this point was carried into the unified Prompt Studio Neo roadmap β€” see Roadmap.)


🎯 Features

⭐ = added or fixed in this Neo fork · everything else is original work by DominikDoom

🏷️ Tag Autocompletion

  • Instant suggestions as you type, sourced from Danbooru, e621, or merged lists
  • Indexed search β€” built-in prefix index for near-instant filtering on large tag lists; can be disabled in settings if needed ⭐
  • Keyboard navigation β€” arrow keys, Tab, Enter, Escape, all configurable
  • Tag color coding by category, with post count for relevance
  • Alias and translation search β€” find tags by their alternate names or translated terms
  • Frequency sorting β€” remembers your most-used tags and promotes them to the top ⭐
  • Status indicator β€” colored dot in the toolbar shows when the extension is loading, ready, or in error state ⭐

βž• Extra Networks

  • LoRA and LyCORIS autocomplete triggered by <
  • Embedding autocomplete triggered by <e:
  • Thumbnail preview in the completion popup
  • Correct alias insertion β€” uses the same identifier Forge Neo expects (ss_output_name or filename, respecting your Extra Networks setting) so tokens never blink ⭐
  • Trigger word injection on LoRA selection β€” inserts activation keywords automatically
    • Fetches from CivitAI if not set locally ⭐
    • Cached by SHA256 β€” only re-fetched when the model file changes ⭐
    • Configurable position: Start of prompt, End of prompt, Before or After the LoRA token ⭐

✳️ Wildcards

  • Wildcard file autocomplete triggered by __
  • Nested folder support
  • YAML wildcard format (UMI-compatible)

πŸͺ„ Chants

  • Prompt preset completion for longer phrase templates stored in JSON files
  • Triggered by <c: or <chant:

πŸ“„ Credits

Clone this wiki locally