Demo video - https://www.reddit.com/r/StableDiffusion/comments/17xe2q8/bubble_prompter_a_tool_to_reorder_tags_and_edit/
Writing and editing prompts has always been slow and boring for me. I tried to find an app that would allow me to rearrange words without having to cut and paste. Since I didn't find something that worked for me and I don't know how to program... I decided to try ChatGPT. The process required quite a few iterations and failed attempts. But after 1 week, studying and understanding the structure of the code that was suggested to me, I was able to edit and add functions. It is not a perfect tool, but if it helps me, it is possible that part of the community will also find it useful.
Bubble Prompter reads the text we enter and interprets it, separating it into tags or bubbles. Simply look for the ", " separators and display the bubbles with random colors for more comfortable reading. The main idea of this tool was to be able to paste several prompts of the same theme (for example copying danbooru idols) and then clean and organize them correctly. Sometimes line breaks or unwanted characters can be copied, hence there are several buttons to be able to do mass cleaning. In essence they work like a search and replace. Then, there are 3 special buttons, which switch to Delete and Emphasize mode. I didn't know how to program the emphasis with the format (:1.1) but I saw that most interfaces support () and [], so that's how it stayed. And to make things easier, lastly I added undo and redo buttons. All buttons have a mouse-over tooltip that briefly explains what it does.
Anyone can use this tool for free. And in fact I would like to see it integrated or reinterpreted in our interfaces (A111, InvokeAI, DrawThings, ComfyUI, etc.). But, I do not allow any payment or subscription application to rely on this code or idea to do business. This is by and for the community. Also, I want to highlight that this application would not work without the SortableJS library, which it relies on to be able to move the bubbles, I appreciate you sharing your code.
I'm not a programmer, and I don't think I'll find the time to update Bubble Prompter anytime soon. So if anyone is willing to add more features or fix possible bugs, they are free to do so. I only ask that in that case... you notify me and share your progress with the entire community.
Thanks for your time!