Have issue working with weight syntanx and editing prompt
See original GitHub issue-
Interfere vanilla hotkey to chagne weight, i.e. select a word and press
ctrl+↑
orctrl+↓
to quick change weight of it. With tagcomplete runnig, this hotkey no longer worksFor example double click to select word
dog
in promptgirl, (sad:1.5), dog
and pressctrl+↑
, the prompt changes togirl, (sad:1.5), (dog:1.1)
automatically, when tagcomplete is not installed -
Have problem showing complete drop list inside weight parenthesis when edit existed tag
For example select
dog
ingirl, (sad:1.5), dog
and typerunn
to overwrite it, the tagcomplete list shows and I cantab
to selectrunning
But selectsad
and typerunn
to overwrite it, no list shows. Selectsad
and typerunn
still no list show. Selectsad
and typerunn
the list shows buttab
or clickrunning
nothing happens.demo
Issue Analytics
- State:
- Created a year ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
Editing inside brackets should work now, as long as the hard-coding bug is fixed for you on the webui side.
https://user-images.githubusercontent.com/34448969/198831834-6d31418c-1ad9-41d0-b928-808587ec6059.mp4
Yeah I’m aware, I do some complex prompts from time to time myself. With my current WIP regex it would look like this: Everything that is green was matched as a weighted tag, while brown tries to match “normal” tags. As you can see, it already works pretty well, even for nested tags - as long as they have no spaces, which is a limitation of all tags currently.
So when editing a tag that was already inserted, you’d have use underscores: to still get a proper match. Maybe I’ll automate or work around that in the future somehow, but for now it’s out of scope.
With spaces ignored, it matches all of them as expected though, so I know the regex will also work for the future. I just can’t ignore them for now because I have no mechanism in place to search & insert tags with underscores or spaces seen as the same.