blue-pen5805 / sdweb-easy-prompt-selector

MIT License
512 stars 159 forks source link

Add adjective prompt support #22

Open vixalie opened 1 year ago

vixalie commented 1 year ago

Add adjective prompt word support, now may use trailing * mark adjective prompt. When adding an adjective prompt, textarea won't add trailing comma, and will wait to add next prompt.

For example, the tag file is defined as below.

Patterns:
    Checkered: checkered *
    Grid: grid *
    Paw Printed: paw printed *

Entity:
    - background

Those Patterns will show on UI as Checkered:, Grid:, etc. Trailing : prompts this prompt is a adjective prompt. Click adjective prompt and then click other entity prompt, will add prompt to textarea like grid background, but not gird, background as before.

And so as random prompt function. For example, @2$$theme:Patterns@ background, 1other will be expanded to grid background, checkered background, 1other.