AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
138.61k stars 26.32k forks source link

[Feature Request]: feature that would allow for the storage/reuse of frequently/recently used prompts within the prompt/negative prompt fields. #15266

Open raviraj4 opened 5 months ago

raviraj4 commented 5 months ago

Is there an existing issue for this?

What would your feature do ?

recently used prompts to be stored in some form of a scrollable format (such as, google search recent example attached below), so that when a user wants to continue modifying the same prompts or add certain tweaks without losing the prompt altogether when we close the webui.bat file. I personally maintain a separate text file for all my prompts which is quite tedious. the main proposal is just adding a scrollable recent prompts section which will appear below the prompts input field when we click on the prompts/negative prompt input field. I would like to assist in implementation of this feature. This enhancement would greatly benefit users who regularly utilize these functions.

Proposed workflow

  1. Go to webui.bat
  2. once webui loads
  3. click on the prompt/negative prompt
  4. a scrollable list of all the previously used/most used prompts appear
  5. user can choose which prompt from the previously used/mostly used prompt is relevant according to his present needs.

Additional information

Screenshot 2024-03-15 115219

missionfloyd commented 5 months ago

I personally maintain a separate text file for all my prompts which is quite tedious.

Your prompts are also stored in the image files. They can be retrieved with the PNG Info tab, or by dropping the file on the prompt input. There are also extensions that can do this. https://github.com/AlUlkesh/stable-diffusion-webui-images-browser https://github.com/zanllp/sd-webui-infinite-image-browsing https://github.com/namkazt/sd-webui-prompt-history

If you have frequently used prompts, you can save them as styles. image

And clicking the ↙️ button when the prompt is empty will reload the last prompt.

trip54654 commented 5 months ago

The styles UI exists, but it's really bad and inconvenient.

raviraj4 commented 5 months ago

yeah I agree, the styles feature is indeed valuable but a bit inconvenient.