Commit Graph

12 Commits

Author SHA1 Message Date
CalamitousFelicitousness f2227d7785 feat(autocomplete): apply keep-underscores setting to insertion
Rename `autocomplete_replace_underscores` to `autocomplete_keep_underscores`
(default false) so both autocomplete toggles read as "keep" semantics.
`insertTag` now honors the setting for both tag and artist modes, matching
the dropdown display. Embedding insertion always preserves underscores
because the names are filesystem identifiers.

- ui_definitions: rename option, flip default, update label
- scripts/autocomplete: rename handler, checkbox, and config-bridge keys
- javascript/autocomplete: invert render polarity; insertTag takes a `kind`
  parameter; drop the artist-mode hardcoded underscore replacement so the
  setting controls tags and artists uniformly

Closes #4827
2026-05-10 19:47:54 +01:00
Vladimir Mandic c8c4d76858 patch autocomplete
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-05 17:33:22 +02:00
CalamitousFelicitousness f6d3436398 feat(autocomplete): bare-< lora browse, reopen on refocus
- bare `<` (or partial `<lo`) surfaces full LoRA list; accept overwrites the typed prefix
- empty-query XnIndex.search returns first N items so trigger chars alone yield results
- refocusing a textarea re-fires onInput so a partial tag at the cursor reopens the dropdown
2026-04-25 16:12:59 +01:00
CalamitousFelicitousness a60f215791 feat(autocomplete): @-prefix artist filter mode for Anima 2026-04-25 13:44:42 +01:00
CalamitousFelicitousness e2c856459c feat(autocomplete): aliases, extra-networks, translations, baseline fixes
- tag aliases (optional 4-tuple) and translations (companion file)
- lora and wildcard triggers; embeddings fold into tag-mode results
- new GET /sdapi/v1/wildcards endpoint
- LRU cap, IME safety, multi-textarea safety, modifier-key pass-through
- manifest-retry and config-bridge hardening
- tags-fetch: alias/translation harvesters with authenticated rate limits
2026-04-24 21:55:27 +01:00
vladmandic 40e550f1c3 add timer info
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-23 12:49:41 +02:00
vladmandic a6c726f8d6 update tag-autocomplete
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-13 11:54:59 +02:00
CalamitousFelicitousness 3195bd6287 feat(autocomplete): move settings to always-on script UI
- create scripts/autocomplete.py as always-on script with dictionary
  management UI (dropdown, refresh, update, settings controls)
- move autocomplete settings from Settings > Extra Networks to hidden
  options, controlled via script UI with JS config bridge
- remove early exit in autocomplete.js when no dictionaries enabled,
  allowing dictionaries enabled via script UI to work without reload
- add id-based suffix matching to setHints.js for unique button hints
- add locale_en.json entries with tooltips for all autocomplete controls
2026-04-09 02:00:45 +01:00
CalamitousFelicitousness 6a7a879c77 fix(autocomplete): address PR review feedback
- Remove remote manifest fetch from startup dropdown population;
  list only locally available tag files via files_cache.list_files()
- Rename CLI utilities to tags-fetch, tags-prune, tags-manifest
- Replace create/destroy mirror div with persistent offscreen mirror
  for caret position measurement
- Add ResizeObserver to reposition dropdown on textarea resize
- Add autocomplete-mirror classname to measurement div
2026-03-26 19:46:23 +00:00
CalamitousFelicitousness 97d3854e4b feat(autocomplete): add setting to toggle comma separator between tags 2026-03-26 01:56:57 +00:00
CalamitousFelicitousness 30d3415e9e feat(autocomplete): improve dropdown UX with match highlighting and caret positioning
Highlight matched query text in bold, add category name tooltips on
colored dots, position dropdown near the caret line instead of the
textarea bottom, and polish row styling with transitions and count badges.
2026-03-26 01:07:16 +00:00
CalamitousFelicitousness d4d5bce3b9 feat(autocomplete): add native tag autocomplete for prompt textareas 2026-03-26 00:47:14 +00:00